Class S3OutputFile

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

public class S3OutputFile extends Object implements org.apache.parquet.io.OutputFile
Output file implementation for S3 keys.
  • Method Details

    • fromLocation

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

      public org.apache.parquet.io.PositionOutputStream create(long l) throws IOException
      Specified by:
      create in interface org.apache.parquet.io.OutputFile
      Throws:
      IOException
    • createOrOverwrite

      public org.apache.parquet.io.PositionOutputStream createOrOverwrite(long l) throws IOException
      Specified by:
      createOrOverwrite in interface org.apache.parquet.io.OutputFile
      Throws:
      IOException
    • supportsBlockSize

      public boolean supportsBlockSize()
      Specified by:
      supportsBlockSize in interface org.apache.parquet.io.OutputFile
    • defaultBlockSize

      public long defaultBlockSize()
      Specified by:
      defaultBlockSize in interface org.apache.parquet.io.OutputFile
    • 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