Class S3InputStream

java.lang.Object
java.io.InputStream
org.apache.parquet.io.SeekableInputStream
org.gridgain.internal.sql.copy.s3.S3InputStream
All Implemented Interfaces:
Closeable, AutoCloseable

public class S3InputStream extends org.apache.parquet.io.SeekableInputStream
Input stream implementation for S3 storage.
  • Constructor Details

    • S3InputStream

      public S3InputStream(software.amazon.awssdk.services.s3.S3Client s3, S3Uri location)
      Constructor.
  • Method Details

    • getPos

      public long getPos()
      Specified by:
      getPos in class org.apache.parquet.io.SeekableInputStream
    • seek

      public void seek(long newPos)
      Specified by:
      seek in class org.apache.parquet.io.SeekableInputStream
    • readFully

      public void readFully(byte[] bytes) throws IOException
      Specified by:
      readFully in class org.apache.parquet.io.SeekableInputStream
      Throws:
      IOException
    • readFully

      public void readFully(byte[] buffer, int start, int len) throws IOException
      Specified by:
      readFully in class org.apache.parquet.io.SeekableInputStream
      Throws:
      IOException
    • readFully

      public void readFully(ByteBuffer buf) throws IOException
      Specified by:
      readFully in class org.apache.parquet.io.SeekableInputStream
      Throws:
      IOException
    • read

      public int read(ByteBuffer buf) throws IOException
      Specified by:
      read in class org.apache.parquet.io.SeekableInputStream
      Throws:
      IOException
    • read

      public int read() throws IOException
      Specified by:
      read in class InputStream
      Throws:
      IOException
    • read

      public int read(byte[] b, int off, int len) throws IOException
      Overrides:
      read in class InputStream
      Throws:
      IOException
    • close

      public void close() throws IOException
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface Closeable
      Overrides:
      close in class InputStream
      Throws:
      IOException