Class LocalPositionReader

  • All Implemented Interfaces:
    alluxio.PositionReader, java.io.Closeable, java.lang.AutoCloseable

    @ThreadSafe
    public class LocalPositionReader
    extends java.lang.Object
    implements alluxio.PositionReader
    Implementation of PositionReader that reads from local UFS.
    • Constructor Summary

      Constructors 
      Constructor Description
      LocalPositionReader​(java.lang.String path, long fileLength)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int readInternal​(long position, alluxio.file.ReadTargetBuffer buffer, int length)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface alluxio.PositionReader

        close, read, read, read, read, read
    • Constructor Detail

      • LocalPositionReader

        public LocalPositionReader​(java.lang.String path,
                                   long fileLength)
        Parameters:
        path - the local file path
        fileLength - the file length
    • Method Detail

      • readInternal

        public int readInternal​(long position,
                                alluxio.file.ReadTargetBuffer buffer,
                                int length)
                         throws java.io.IOException
        Specified by:
        readInternal in interface alluxio.PositionReader
        Throws:
        java.io.IOException