Package com.mapr.fs

Class MapRFsDataInputStream

  • All Implemented Interfaces:
    java.io.Closeable, java.io.DataInput, java.lang.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
    • Nested Class Summary

      • Nested classes/interfaces inherited from class org.apache.hadoop.fs.FSDataInputStream

        org.apache.hadoop.fs.FSDataInputStream.FadviseType
      • Nested classes/interfaces inherited from interface org.apache.hadoop.fs.StreamCapabilities

        org.apache.hadoop.fs.StreamCapabilities.StreamCapability
    • Field Summary

      • Fields inherited from class java.io.FilterInputStream

        in
      • Fields inherited from interface org.apache.hadoop.fs.StreamCapabilities

        ABORTABLE_STREAM, DROPBEHIND, HFLUSH, HSYNC, IOSTATISTICS, PREADBYTEBUFFER, READAHEAD, READBYTEBUFFER, UNBUFFER
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void adviseFile​(org.apache.hadoop.fs.FSDataInputStream.FadviseType type, long offset, long count)  
      long getChunkSize()  
      long[] getFidServers()  
      java.lang.String getFidStr()  
      long getFileLength()  
      long getPos()  
      org.apache.hadoop.fs.FSInputStream getWrappedStream()  
      int read​(long pos, byte[] buf, int off, int len)  
      void readFully​(long pos, byte[] buf)  
      void seek​(long pos)  
      boolean seekToNewSource​(long pos)  
      • Methods inherited from class org.apache.hadoop.fs.FSDataInputStream

        getFileDescriptor, getIOStatistics, hasCapability, read, read, read, read, readFully, readFully, releaseBuffer, setDropBehind, setReadahead, toString, unbuffer
      • Methods inherited from class java.io.DataInputStream

        read, read, readBoolean, readByte, readChar, readDouble, readFloat, readFully, readFully, readInt, readLine, readLong, readShort, readUnsignedByte, readUnsignedShort, readUTF, readUTF, skipBytes
      • Methods inherited from class java.io.FilterInputStream

        available, close, mark, markSupported, read, reset, skip
      • Methods inherited from class java.io.InputStream

        nullInputStream, readAllBytes, readNBytes, readNBytes, transferTo
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • MapRFsDataInputStream

        public MapRFsDataInputStream​(MapRFsInStream x)
                              throws java.io.IOException
        Throws:
        java.io.IOException
    • Method Detail

      • getPos

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

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

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

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

        public boolean seekToNewSource​(long pos)
                                throws java.io.IOException
        Specified by:
        seekToNewSource in interface org.apache.hadoop.fs.Seekable
        Overrides:
        seekToNewSource in class org.apache.hadoop.fs.FSDataInputStream
        Throws:
        java.io.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 java.io.IOException
        Overrides:
        adviseFile in class org.apache.hadoop.fs.FSDataInputStream
        Throws:
        java.io.IOException
      • getFidStr

        public java.lang.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