Package org.apache.hadoop.fs.s3a
Class S3AFileSystem.GetContentSummaryCallbacksImpl
java.lang.Object
org.apache.hadoop.fs.s3a.S3AFileSystem.GetContentSummaryCallbacksImpl
- All Implemented Interfaces:
GetContentSummaryOperation.GetContentSummaryCallbacks
- Enclosing class:
- S3AFileSystem
protected class S3AFileSystem.GetContentSummaryCallbacksImpl
extends Object
implements GetContentSummaryOperation.GetContentSummaryCallbacks
Callbacks from the
GetContentSummaryOperation.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.hadoop.fs.RemoteIterator<S3ALocatedFileStatus>listFilesIterator(org.apache.hadoop.fs.Path path, boolean recursive) List all entries under a path.probePathStatus(org.apache.hadoop.fs.Path path, Set<StatusProbeEnum> probes) Get the status of a path.
-
Constructor Details
-
GetContentSummaryCallbacksImpl
protected GetContentSummaryCallbacksImpl()
-
-
Method Details
-
probePathStatus
public S3AFileStatus probePathStatus(org.apache.hadoop.fs.Path path, Set<StatusProbeEnum> probes) throws IOException Description copied from interface:GetContentSummaryOperation.GetContentSummaryCallbacksGet the status of a path.- Specified by:
probePathStatusin interfaceGetContentSummaryOperation.GetContentSummaryCallbacks- Parameters:
path- path to probe.probes- probes to exec- Returns:
- the status
- Throws:
IOException- failure
-
listFilesIterator
public org.apache.hadoop.fs.RemoteIterator<S3ALocatedFileStatus> listFilesIterator(org.apache.hadoop.fs.Path path, boolean recursive) throws IOException Description copied from interface:GetContentSummaryOperation.GetContentSummaryCallbacksList all entries under a path.- Specified by:
listFilesIteratorin interfaceGetContentSummaryOperation.GetContentSummaryCallbacks- Parameters:
path- path.recursive- if the subdirectories need to be traversed recursively- Returns:
- an iterator over the listing.
- Throws:
IOException- failure
-