FSDirectory详解:接口

This commit is contained in:
LingZhaoHui 2024-04-13 23:52:20 +08:00
parent fd64a2b992
commit 63d301e1d5
Signed by: zeekling
GPG Key ID: D96E4E75267CA2CC

View File

@ -96,3 +96,16 @@ fsd.updateCount(iip, context.quotaDelta(), false);
- 删除EditLog。 - 删除EditLog。
- 调用incrDeletedFileCount更新metrics信息。 - 调用incrDeletedFileCount更新metrics信息。
### 创建文件
**接口**
```java
HdfsFileStatus startFile(String src, PermissionStatus permissions,
String holder, String clientMachine, EnumSet<CreateFlag> flag,
boolean createParent, short replication, long blockSize,
CryptoProtocolVersion[] supportedVersions, String ecPolicyName,
String storagePolicy, boolean logRetryCache) throws IOException {
}
```