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
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
-
RangeRequestingSeekableInputStream
public RangeRequestingSeekableInputStream(RangeRequestingSeekableInputStream.RangeRetriever rangeRetriever, long bytesAvailable)
-
-
Method Details
-
getPos
public long getPos() throws java.io.IOException- Specified by:
getPos
in classorg.apache.parquet.io.SeekableInputStream
- Throws:
java.io.IOException
-
seek
public void seek(long newPos) throws java.io.IOException- Specified by:
seek
in classorg.apache.parquet.io.SeekableInputStream
- Throws:
java.io.IOException
-
skip
public long skip(long n) throws java.io.IOException- Overrides:
skip
in classjava.io.InputStream
- Throws:
java.io.IOException
-
readFully
public void readFully(byte[] bytes) throws java.io.IOException- Specified by:
readFully
in classorg.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 classorg.apache.parquet.io.SeekableInputStream
- Throws:
java.io.IOException
-
read
public int read(java.nio.ByteBuffer buf) throws java.io.IOException- Specified by:
read
in classorg.apache.parquet.io.SeekableInputStream
- Throws:
java.io.IOException
-
readFully
public void readFully(java.nio.ByteBuffer buf) throws java.io.IOException- Specified by:
readFully
in classorg.apache.parquet.io.SeekableInputStream
- Throws:
java.io.IOException
-
read
public int read() throws java.io.IOException- Specified by:
read
in classjava.io.InputStream
- Throws:
java.io.IOException
-