Interface ObjectInputStreamCallbacks
- All Superinterfaces:
AutoCloseable,Closeable
- All Known Implementing Classes:
InputStreamCallbacksImpl
Callbacks for reading object data from the S3 Store.
-
Method Summary
Modifier and TypeMethodDescriptionsoftware.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.BuilderCreate 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.
-
Method Details
-
newGetRequestBuilder
Create a GET request builder.- Parameters:
key- object key- Returns:
- the request builder
-
getObject
@OnceRaw software.amazon.awssdk.core.ResponseInputStream<software.amazon.awssdk.services.s3.model.GetObjectResponse> getObject(software.amazon.awssdk.services.s3.model.GetObjectRequest request) throws IOException Execute the request. When CSE is enabled with reading of unencrypted data, The object is checked if it is encrypted and if so, the request is made with encrypted S3 client. If the object is not encrypted, the request is made with unencrypted s3 client.- Parameters:
request- the request- Returns:
- the response
- Throws:
IOException- on any failure.
-
submit
Submit some asynchronous work, for example, draining a stream.- Type Parameters:
T- return type- Parameters:
operation- operation to invoke- Returns:
- a future.
-