public interface ListingOperationCallbacks
Listing operations
need, derived from the actual appropriate S3AFileSystem
methods.| Modifier and Type | Method and Description |
|---|---|
boolean |
allowAuthoritative(org.apache.hadoop.fs.Path p)
Is the path for this instance considered authoritative on the client,
that is: will listing/status operations only be handled by the metastore,
with no fallback to S3.
|
CompletableFuture<S3ListResult> |
continueListObjectsAsync(S3ListRequest request,
S3ListResult prevResult,
org.apache.hadoop.fs.statistics.DurationTrackerFactory trackerFactory,
org.apache.hadoop.fs.store.audit.AuditSpan span)
List the next set of objects.
|
S3ListRequest |
createListObjectsRequest(String key,
String delimiter,
org.apache.hadoop.fs.store.audit.AuditSpan span)
Create a
ListObjectsRequest request against this bucket,
with the maximum keys returned in a query set in the FS config. |
long |
getDefaultBlockSize(org.apache.hadoop.fs.Path path)
Return the number of bytes that large input files should be optimally
be split into to minimize I/O time.
|
int |
getMaxKeys()
Get the maximum key count.
|
ITtlTimeProvider |
getUpdatedTtlTimeProvider()
Get the updated time provider for the current fs instance.
|
CompletableFuture<S3ListResult> |
listObjectsAsync(S3ListRequest request,
org.apache.hadoop.fs.statistics.DurationTrackerFactory trackerFactory,
org.apache.hadoop.fs.store.audit.AuditSpan span)
Initiate a
listObjectsAsync operation, incrementing metrics
in the process. |
S3ALocatedFileStatus |
toLocatedFileStatus(S3AFileStatus status)
Build a
S3ALocatedFileStatus from a FileStatus instance. |
@Retries.RetryRaw CompletableFuture<S3ListResult> listObjectsAsync(S3ListRequest request, org.apache.hadoop.fs.statistics.DurationTrackerFactory trackerFactory, org.apache.hadoop.fs.store.audit.AuditSpan span) throws IOException
listObjectsAsync operation, incrementing metrics
in the process.
Retry policy: retry untranslated.request - request to initiatetrackerFactory - tracker with statistics to updatespan - audit span for this operationIOException - if the retry invocation raises one (it shouldn't).@Retries.RetryRaw CompletableFuture<S3ListResult> continueListObjectsAsync(S3ListRequest request, S3ListResult prevResult, org.apache.hadoop.fs.statistics.DurationTrackerFactory trackerFactory, org.apache.hadoop.fs.store.audit.AuditSpan span) throws IOException
request - last list objects request to continueprevResult - last paged result to continue fromtrackerFactory - tracker with statistics to updatespan - audit span for the IOIOException - none, just there for retryUntranslated.S3ALocatedFileStatus toLocatedFileStatus(S3AFileStatus status) throws IOException
S3ALocatedFileStatus from a FileStatus instance.status - file statusIOException - IO Problems.S3ListRequest createListObjectsRequest(String key, String delimiter, org.apache.hadoop.fs.store.audit.AuditSpan span)
ListObjectsRequest request against this bucket,
with the maximum keys returned in a query set in the FS config.
The active span for the FS is handed the request to prepare it
before this method returns.
getMaxKeys().key - key for requestdelimiter - any delimiterspan - span within which the request takes place.long getDefaultBlockSize(org.apache.hadoop.fs.Path path)
path - path of fileint getMaxKeys()
ITtlTimeProvider getUpdatedTtlTimeProvider()
ITtlTimeProviderboolean allowAuthoritative(org.apache.hadoop.fs.Path p)
p - pathCopyright © 2008–2022 Apache Software Foundation. All rights reserved.