Class DrillBufInputStream
java.lang.Object
java.io.InputStream
io.netty.buffer.ByteBufInputStream
org.apache.drill.exec.vector.complex.fn.DrillBufInputStream
- All Implemented Interfaces:
Closeable
,DataInput
,AutoCloseable
,org.apache.hadoop.fs.Seekable
public class DrillBufInputStream
extends io.netty.buffer.ByteBufInputStream
implements org.apache.hadoop.fs.Seekable
An InputStream that wraps a DrillBuf and implements the seekable interface.
-
Method Summary
Modifier and TypeMethodDescriptionlong
getPos()
static DrillBufInputStream
void
seek
(long pos) boolean
seekToNewSource
(long targetPos) Methods inherited from class io.netty.buffer.ByteBufInputStream
available, close, mark, markSupported, read, read, readBoolean, readByte, readBytes, readChar, readDouble, readFloat, readFully, readFully, readInt, readLine, readLong, readShort, readUnsignedByte, readUnsignedShort, readUTF, reset, skip, skipBytes
Methods inherited from class java.io.InputStream
read
-
Method Details
-
seek
- Specified by:
seek
in interfaceorg.apache.hadoop.fs.Seekable
- Throws:
IOException
-
getPos
- Specified by:
getPos
in interfaceorg.apache.hadoop.fs.Seekable
- Throws:
IOException
-
seekToNewSource
- Specified by:
seekToNewSource
in interfaceorg.apache.hadoop.fs.Seekable
- Throws:
IOException
-
getStream
-