FSDirectory详解:接口 #25
@ -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 {
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user