public interface DirectoryPolicy
Modifier and Type | Interface and Description |
---|---|
static class |
DirectoryPolicy.MarkerPolicy
Supported retention policies.
|
Modifier and Type | Method and Description |
---|---|
String |
describe()
Describe the policy for marker tools and logs.
|
DirectoryPolicy.MarkerPolicy |
getMarkerPolicy()
Get the marker policy.
|
boolean |
hasPathCapability(org.apache.hadoop.fs.Path path,
String capability)
Does a specific path have the relevant option.
|
boolean |
keepDirectoryMarkers(org.apache.hadoop.fs.Path path)
Should a directory marker be retained?
|
boolean keepDirectoryMarkers(org.apache.hadoop.fs.Path path)
path
- path a file/directory is being created with.DirectoryPolicy.MarkerPolicy getMarkerPolicy()
String describe()
boolean hasPathCapability(org.apache.hadoop.fs.Path path, String capability)
path
- pathcapability
- capabilityIllegalArgumentException
- if the capability is unknown.Copyright © 2008–2024 Apache Software Foundation. All rights reserved.