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 longgetPos()voidseek(long pos)booleanseekToNewSource(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
-
Methods inherited from class java.io.InputStream
nullInputStream, readAllBytes, readNBytes, readNBytes, transferTo
-
-
-
-
Method Detail
-
seek
public void seek(long pos) throws IOException- Specified by:
seekin interfaceorg.apache.hadoop.fs.Seekable- Throws:
IOException
-
getPos
public long getPos() throws IOException- Specified by:
getPosin interfaceorg.apache.hadoop.fs.Seekable- Throws:
IOException
-
seekToNewSource
public boolean seekToNewSource(long targetPos) throws IOException- Specified by:
seekToNewSourcein interfaceorg.apache.hadoop.fs.Seekable- Throws:
IOException
-
-