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 TypeMethodDescriptionlonggetPos()static DrillBufInputStreamvoidseek(long pos) booleanseekToNewSource(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, skipBytesMethods inherited from class java.io.InputStream
nullInputStream, read, readAllBytes, readNBytes, readNBytes, transferTo
-
Method Details
-
seek
- Specified by:
seekin interfaceorg.apache.hadoop.fs.Seekable- Throws:
IOException
-
getPos
- Specified by:
getPosin interfaceorg.apache.hadoop.fs.Seekable- Throws:
IOException
-
seekToNewSource
- Specified by:
seekToNewSourcein interfaceorg.apache.hadoop.fs.Seekable- Throws:
IOException
-
getStream
-