Package com.mapr.fs

Class MapRFsDataInputStream

java.lang.Object
java.io.InputStream
java.io.FilterInputStream
java.io.DataInputStream
org.apache.hadoop.fs.FSDataInputStream
com.mapr.fs.MapRFsDataInputStream
All Implemented Interfaces:
Closeable, DataInput, AutoCloseable, org.apache.hadoop.fs.ByteBufferPositionedReadable, org.apache.hadoop.fs.ByteBufferReadable, org.apache.hadoop.fs.CanSetDropBehind, org.apache.hadoop.fs.CanSetReadahead, org.apache.hadoop.fs.CanUnbuffer, org.apache.hadoop.fs.HasEnhancedByteBufferAccess, org.apache.hadoop.fs.HasFileDescriptor, org.apache.hadoop.fs.PositionedReadable, org.apache.hadoop.fs.Seekable, org.apache.hadoop.fs.statistics.IOStatisticsSource, org.apache.hadoop.fs.StreamCapabilities

public class MapRFsDataInputStream extends org.apache.hadoop.fs.FSDataInputStream
  • Constructor Details

  • Method Details

    • getPos

      public long getPos() throws IOException
      Specified by:
      getPos in interface org.apache.hadoop.fs.Seekable
      Overrides:
      getPos in class org.apache.hadoop.fs.FSDataInputStream
      Throws:
      IOException
    • read

      public int read(long pos, byte[] buf, int off, int len) throws IOException
      Specified by:
      read in interface org.apache.hadoop.fs.PositionedReadable
      Overrides:
      read in class org.apache.hadoop.fs.FSDataInputStream
      Throws:
      IOException
    • readFully

      public void readFully(long pos, byte[] buf) throws IOException
      Specified by:
      readFully in interface org.apache.hadoop.fs.PositionedReadable
      Overrides:
      readFully in class org.apache.hadoop.fs.FSDataInputStream
      Throws:
      IOException
    • seek

      public void seek(long pos) throws IOException
      Specified by:
      seek in interface org.apache.hadoop.fs.Seekable
      Overrides:
      seek in class org.apache.hadoop.fs.FSDataInputStream
      Throws:
      IOException
    • seekToNewSource

      public boolean seekToNewSource(long pos) throws IOException
      Specified by:
      seekToNewSource in interface org.apache.hadoop.fs.Seekable
      Overrides:
      seekToNewSource in class org.apache.hadoop.fs.FSDataInputStream
      Throws:
      IOException
    • getWrappedStream

      public org.apache.hadoop.fs.FSInputStream getWrappedStream()
      Overrides:
      getWrappedStream in class org.apache.hadoop.fs.FSDataInputStream
    • getFileLength

      public long getFileLength()
      Overrides:
      getFileLength in class org.apache.hadoop.fs.FSDataInputStream
    • adviseFile

      public void adviseFile(org.apache.hadoop.fs.FSDataInputStream.FadviseType type, long offset, long count) throws IOException
      Overrides:
      adviseFile in class org.apache.hadoop.fs.FSDataInputStream
      Throws:
      IOException
    • getFidStr

      public String getFidStr()
      Overrides:
      getFidStr in class org.apache.hadoop.fs.FSDataInputStream
    • getFidServers

      public long[] getFidServers()
      Overrides:
      getFidServers in class org.apache.hadoop.fs.FSDataInputStream
    • getChunkSize

      public long getChunkSize()
      Overrides:
      getChunkSize in class org.apache.hadoop.fs.FSDataInputStream