Interface ObjectInputStreamCallbacks

All Superinterfaces:
AutoCloseable, Closeable
All Known Implementing Classes:
InputStreamCallbacksImpl

public interface ObjectInputStreamCallbacks extends Closeable
Callbacks for reading object data from the S3 Store.
  • Method Summary

    Modifier and Type
    Method
    Description
    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
    Create a GET request builder.
    submit(org.apache.hadoop.util.functional.CallableRaisingIOE<T> operation)
    Submit some asynchronous work, for example, draining a stream.

    Methods inherited from interface java.io.Closeable

    close
  • Method Details

    • newGetRequestBuilder

      software.amazon.awssdk.services.s3.model.GetObjectRequest.Builder newGetRequestBuilder(String key)
      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

      <T> CompletableFuture<T> submit(org.apache.hadoop.util.functional.CallableRaisingIOE<T> operation)
      Submit some asynchronous work, for example, draining a stream.
      Type Parameters:
      T - return type
      Parameters:
      operation - operation to invoke
      Returns:
      a future.