Class RangeRequestingSeekableInputStream

java.lang.Object
java.io.InputStream
org.apache.parquet.io.SeekableInputStream
com.markosindustries.distroboy.parquet.RangeRequestingSeekableInputStream
All Implemented Interfaces:
java.io.Closeable, java.lang.AutoCloseable

public class RangeRequestingSeekableInputStream
extends org.apache.parquet.io.SeekableInputStream
  • Nested Class Summary

    Nested Classes
    Modifier and Type Class Description
    static interface  RangeRequestingSeekableInputStream.RangeRetriever  
  • Constructor Summary

    Constructors
    Constructor Description
    RangeRequestingSeekableInputStream​(RangeRequestingSeekableInputStream.RangeRetriever rangeRetriever, long bytesAvailable)  
  • Method Summary

    Modifier and Type Method Description
    long getPos()  
    int read()  
    int read​(java.nio.ByteBuffer buf)  
    void readFully​(byte[] bytes)  
    void readFully​(byte[] bytes, int start, int len)  
    void readFully​(java.nio.ByteBuffer buf)  
    void seek​(long newPos)  
    long skip​(long n)  

    Methods inherited from class java.io.InputStream

    available, close, mark, markSupported, nullInputStream, read, read, readAllBytes, readNBytes, readNBytes, reset, skipNBytes, transferTo

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • Method Details

    • getPos

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

      public void seek​(long newPos) throws java.io.IOException
      Specified by:
      seek in class org.apache.parquet.io.SeekableInputStream
      Throws:
      java.io.IOException
    • skip

      public long skip​(long n) throws java.io.IOException
      Overrides:
      skip in class java.io.InputStream
      Throws:
      java.io.IOException
    • readFully

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

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

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

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

      public int read() throws java.io.IOException
      Specified by:
      read in class java.io.InputStream
      Throws:
      java.io.IOException