MCPcopy
hub / github.com/Alluxio/alluxio / Seekable

Interface Seekable

core/common/src/main/java/alluxio/Seekable.java:20–28  ·  view source on GitHub ↗

This interface should be implemented by all Alluxio streams which support moving the read position to a specific byte offset.

Source from the content-addressed store, hash-verified

18 * position to a specific byte offset.
19 */
20public 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}

Callers 8

readInternalMethod · 0.65
readMethod · 0.65
seekMethod · 0.65
seekMethod · 0.65
testRemainingMethod · 0.65
testSeekMethod · 0.65

Implementers 15

BaseHdfsFileInputStreamcore/client/hdfs/src/main/java/alluxio
FileInStreamcore/client/fs/src/main/java/alluxio/c
BlockInStreamcore/client/fs/src/main/java/alluxio/c
SeekableUnderFileInputStreamcore/common/src/main/java/alluxio/unde
PreadSeekableStreamunderfs/hdfs/src/test/java/alluxio/und
AlluxioHdfsInputStreamcore/client/hdfs/src/main/java/alluxio
MockFileInStreamcore/client/fs/src/test/java/alluxio/c
TimedMockFileInStreamcore/client/fs/src/test/java/alluxio/c
MultiReadFileInStreamcore/client/fs/src/test/java/alluxio/c
AlluxioFileInStreamcore/client/fs/src/main/java/alluxio/c
LocalCacheFileInStreamcore/client/fs/src/main/java/alluxio/c
UfsFileInStreamcore/client/fs/src/main/java/alluxio/c

Calls

no outgoing calls

Tested by

no test coverage detected