Class SeekableDataInputStream
- java.lang.Object
-
- java.io.InputStream
-
- java.io.FilterInputStream
-
- java.io.DataInputStream
-
- org.apache.accumulo.core.file.streams.SeekableDataInputStream
-
- All Implemented Interfaces:
Closeable
,DataInput
,AutoCloseable
,org.apache.hadoop.fs.Seekable
public class SeekableDataInputStream extends DataInputStream implements org.apache.hadoop.fs.Seekable
-
-
Field Summary
-
Fields inherited from class java.io.FilterInputStream
in
-
-
Constructor Summary
Constructors Constructor Description SeekableDataInputStream(StreamType stream)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description long
getPos()
void
seek(long pos)
boolean
seekToNewSource(long targetPos)
-
Methods inherited from class java.io.DataInputStream
read, read, readBoolean, readByte, readChar, readDouble, readFloat, readFully, readFully, readInt, readLine, readLong, readShort, readUnsignedByte, readUnsignedShort, readUTF, readUTF, skipBytes
-
Methods inherited from class java.io.FilterInputStream
available, close, mark, markSupported, read, reset, skip
-
-
-
-
Method Detail
-
seek
public void seek(long pos) throws IOException
- Specified by:
seek
in interfaceorg.apache.hadoop.fs.Seekable
- Throws:
IOException
-
getPos
public long getPos() throws IOException
- Specified by:
getPos
in interfaceorg.apache.hadoop.fs.Seekable
- Throws:
IOException
-
seekToNewSource
public boolean seekToNewSource(long targetPos) throws IOException
- Specified by:
seekToNewSource
in interfaceorg.apache.hadoop.fs.Seekable
- Throws:
IOException
-
-