Package alluxio
Interface Seekable
-
- All Superinterfaces:
Positioned
- All Known Implementing Classes:
SeekableBufferedInputStream
,SeekableUnderFileInputStream
public interface Seekable extends Positioned
This interface should be implemented by all Alluxio streams which support moving the read position to a specific byte offset.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
seek(long pos)
Moves the starting read position of the stream to the specified position which is relative to the start of the stream.-
Methods inherited from interface alluxio.Positioned
getPos
-
-
-
-
Method Detail
-
seek
void seek(long pos) throws java.io.IOException
Moves the starting read position of the stream to the specified position which is relative to the start of the stream. Seeking to a position before the current read position is supported.- Parameters:
pos
- the position to seek to, it must be between 0 and the end of the stream - 1- Throws:
java.io.IOException
-
-