Class S3InputFile

java.lang.Object
org.gridgain.internal.sql.copy.parquet.s3.S3InputFile
All Implemented Interfaces:
org.apache.parquet.io.InputFile

public class S3InputFile extends Object implements org.apache.parquet.io.InputFile
Input file implementation for S3 keys.
  • Method Details

    • fromLocation

      public static S3InputFile fromLocation(String location, software.amazon.awssdk.services.s3.S3Client client)
      Creates new instance of S3InputFile from an Uri like 's3://bucketname/keyname'.
      Parameters:
      location - S3 URI.
      client - S3 client.
    • getLength

      public long getLength()
      Specified by:
      getLength in interface org.apache.parquet.io.InputFile
    • newStream

      public org.apache.parquet.io.SeekableInputStream newStream()
      Specified by:
      newStream in interface org.apache.parquet.io.InputFile
    • location

      public String location()
      Gets file location.
    • client

      public software.amazon.awssdk.services.s3.S3Client client()
      Gets S3 client.
    • uri

      public S3Uri uri()
      Gets S3 URI.
    • getObjectMetadata

      protected software.amazon.awssdk.services.s3.model.HeadObjectResponse getObjectMetadata() throws software.amazon.awssdk.services.s3.model.S3Exception
      Gets object metadata.
      Throws:
      software.amazon.awssdk.services.s3.model.S3Exception
    • toString

      public String toString()
      Overrides:
      toString in class Object