public class InputStreamCallbacksImpl extends Object implements ObjectInputStreamCallbacks
| Constructor and Description |
|---|
InputStreamCallbacksImpl(org.apache.hadoop.fs.store.audit.AuditSpan auditSpan,
S3AStore store,
S3AFileSystemOperations fsOperations,
ThreadPoolExecutor threadPool)
Create.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes the audit span.
|
software.amazon.awssdk.core.ResponseInputStream<software.amazon.awssdk.services.s3.model.GetObjectResponse> |
getObject(software.amazon.awssdk.services.s3.model.GetObjectRequest request)
Execute the request.
|
software.amazon.awssdk.services.s3.model.GetObjectRequest.Builder |
newGetRequestBuilder(String key)
Create a GET request builder.
|
<T> CompletableFuture<T> |
submit(org.apache.hadoop.util.functional.CallableRaisingIOE<T> operation)
Submit some asynchronous work, for example, draining a stream.
|
public InputStreamCallbacksImpl(org.apache.hadoop.fs.store.audit.AuditSpan auditSpan,
S3AStore store,
S3AFileSystemOperations fsOperations,
ThreadPoolExecutor threadPool)
auditSpan - Audit span to activate before each call.store - store operationsfsOperations - crypto FS operations.threadPool - thread pool for async operations.public void close()
close in interface Closeableclose in interface AutoCloseablepublic software.amazon.awssdk.services.s3.model.GetObjectRequest.Builder newGetRequestBuilder(String key)
ObjectInputStreamCallbacksnewGetRequestBuilder in interface ObjectInputStreamCallbackskey - object keypublic software.amazon.awssdk.core.ResponseInputStream<software.amazon.awssdk.services.s3.model.GetObjectResponse> getObject(software.amazon.awssdk.services.s3.model.GetObjectRequest request)
throws IOException
ObjectInputStreamCallbacksgetObject in interface ObjectInputStreamCallbacksrequest - the requestIOException - on any failure.public <T> CompletableFuture<T> submit(org.apache.hadoop.util.functional.CallableRaisingIOE<T> operation)
ObjectInputStreamCallbackssubmit in interface ObjectInputStreamCallbacksT - return typeoperation - operation to invokeCopyright © 2008–2025 Apache Software Foundation. All rights reserved.