Save This Page
Home » hadoop-0.14.4 » org.apache » hadoop » fs » [javadoc | source]
org.apache.hadoop.fs
public interface: Seekable [javadoc | source]

All Known Implementing Classes:
    DFSInputStream, ChecksumFSInputChecker, BlockReader, FSDataInputStream, InMemoryInputStream, FSInputChecker, FSInputStream, DFSDataInputStream, S3InputStream, BufferedFSInputStream, LocalFSFileInputStream

Stream that permits seeking.
Method from org.apache.hadoop.fs.Seekable Summary:
getPos,   seek,   seekToNewSource
Method from org.apache.hadoop.fs.Seekable Detail:
 public long getPos() throws IOException
    Return the current offset from the start of the file
 public  void seek(long pos) throws IOException
    Seek to the given offset from the start of the file. The next read() will be from that location. Can't seek past the end of the file.
 public boolean seekToNewSource(long targetPos) throws IOException
    Seeks a different copy of the data. Returns true if found a new source, false otherwise.