protected class S3AFileSystem.ListingOperationCallbacksImpl extends Object implements ListingOperationCallbacks
Listing.
Auditing: the listing object is long-lived; the audit span
for a single listing is passed in from the listing
method calls and then down to the callbacks.| Modifier | Constructor and Description |
|---|---|
protected |
ListingOperationCallbacksImpl() |
| Modifier and Type | Method and Description |
|---|---|
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.
|
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. |
public CompletableFuture<S3ListResult> listObjectsAsync(S3ListRequest request, org.apache.hadoop.fs.statistics.DurationTrackerFactory trackerFactory, org.apache.hadoop.fs.store.audit.AuditSpan span)
ListingOperationCallbackslistObjectsAsync operation, incrementing metrics
in the process.
Retry policy: failures will come from the future.listObjectsAsync in interface ListingOperationCallbacksrequest - request to initiatetrackerFactory - tracker with statistics to updatespan - audit span for this operation@Retries.RetryRaw public CompletableFuture<S3ListResult> continueListObjectsAsync(S3ListRequest request, S3ListResult prevResult, org.apache.hadoop.fs.statistics.DurationTrackerFactory trackerFactory, org.apache.hadoop.fs.store.audit.AuditSpan span)
ListingOperationCallbackscontinueListObjectsAsync in interface ListingOperationCallbacksrequest - last list objects request to continueprevResult - last paged result to continue fromtrackerFactory - tracker with statistics to updatespan - audit span for the IOpublic S3ALocatedFileStatus toLocatedFileStatus(S3AFileStatus status) throws IOException
ListingOperationCallbacksS3ALocatedFileStatus from a FileStatus instance.toLocatedFileStatus in interface ListingOperationCallbacksstatus - file statusIOException - IO Problems.public S3ListRequest createListObjectsRequest(String key, String delimiter, org.apache.hadoop.fs.store.audit.AuditSpan span)
ListingOperationCallbacksListObjectsRequest 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.
ListingOperationCallbacks.getMaxKeys().createListObjectsRequest in interface ListingOperationCallbackskey - key for requestdelimiter - any delimiterspan - span within which the request takes place.public long getDefaultBlockSize(org.apache.hadoop.fs.Path path)
ListingOperationCallbacksgetDefaultBlockSize in interface ListingOperationCallbackspath - path of filepublic int getMaxKeys()
ListingOperationCallbacksgetMaxKeys in interface ListingOperationCallbacksCopyright © 2008–2024 Apache Software Foundation. All rights reserved.