This interface should be implemented by all Alluxio streams which support moving the read position to a specific byte offset.
| 18 | * position to a specific byte offset. |
| 19 | */ |
| 20 | public interface Seekable extends Positioned { |
| 21 | /** |
| 22 | * Moves the starting read position of the stream to the specified position which is relative to |
| 23 | * the start of the stream. Seeking to a position before the current read position is supported. |
| 24 | * |
| 25 | * @param pos the position to seek to, it must be between 0 and the end of the stream - 1 |
| 26 | */ |
| 27 | void seek(long pos) throws IOException; |
| 28 | } |
no outgoing calls
no test coverage detected