Package com.mapr.fs

Class MapRFsDataOutputStream

  • All Implemented Interfaces:
    java.io.Closeable, java.io.DataOutput, java.io.Flushable, java.lang.AutoCloseable, org.apache.hadoop.fs.Abortable, org.apache.hadoop.fs.CanSetDropBehind, org.apache.hadoop.fs.statistics.IOStatisticsSource, org.apache.hadoop.fs.StreamCapabilities, org.apache.hadoop.fs.Syncable

    public class MapRFsDataOutputStream
    extends org.apache.hadoop.fs.FSDataOutputStream
    • Nested Class Summary

      • Nested classes/interfaces inherited from interface org.apache.hadoop.fs.Abortable

        org.apache.hadoop.fs.Abortable.AbortableResult
      • Nested classes/interfaces inherited from interface org.apache.hadoop.fs.StreamCapabilities

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

      Fields 
      Modifier and Type Field Description
      static org.apache.commons.logging.Log LOG  
      • Fields inherited from class java.io.DataOutputStream

        written
      • Fields inherited from class java.io.FilterOutputStream

        out
      • 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 close()  
      void flush()  
      long getChunkSize()  
      long[] getFidServers()  
      java.lang.String getFidStr()  
      long getPos()  
      java.io.OutputStream getWrappedStream()  
      void hflush()  
      void hsync()  
      void seek​(long pos)  
      void sync()  
      void write​(byte[] b, int off, int len)  
      void write​(int b)  
      • Methods inherited from class org.apache.hadoop.fs.FSDataOutputStream

        abort, getIOStatistics, hasCapability, setDropBehind, toString
      • Methods inherited from class java.io.DataOutputStream

        size, writeBoolean, writeByte, writeBytes, writeChar, writeChars, writeDouble, writeFloat, writeInt, writeLong, writeShort, writeUTF
      • Methods inherited from class java.io.FilterOutputStream

        write
      • Methods inherited from class java.io.OutputStream

        nullOutputStream
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface java.io.DataOutput

        write
    • Field Detail

      • LOG

        public static final org.apache.commons.logging.Log LOG
    • Constructor Detail

      • MapRFsDataOutputStream

        @Deprecated
        public MapRFsDataOutputStream​(MapRFsOutStream out)
                               throws java.io.IOException
        Deprecated.
        Throws:
        java.io.IOException
      • MapRFsDataOutputStream

        public MapRFsDataOutputStream​(MapRFsOutStream out,
                                      long startPosition)
                               throws java.io.IOException
        Throws:
        java.io.IOException
    • Method Detail

      • write

        public void write​(int b)
                   throws java.io.IOException
        Specified by:
        write in interface java.io.DataOutput
        Overrides:
        write in class java.io.DataOutputStream
        Throws:
        java.io.IOException
      • write

        public void write​(byte[] b,
                          int off,
                          int len)
                   throws java.io.IOException
        Specified by:
        write in interface java.io.DataOutput
        Overrides:
        write in class java.io.DataOutputStream
        Throws:
        java.io.IOException
      • getPos

        public long getPos()
        Overrides:
        getPos in class org.apache.hadoop.fs.FSDataOutputStream
      • close

        public void close()
                   throws java.io.IOException
        Specified by:
        close in interface java.lang.AutoCloseable
        Specified by:
        close in interface java.io.Closeable
        Overrides:
        close in class org.apache.hadoop.fs.FSDataOutputStream
        Throws:
        java.io.IOException
      • getWrappedStream

        public java.io.OutputStream getWrappedStream()
        Overrides:
        getWrappedStream in class org.apache.hadoop.fs.FSDataOutputStream
      • sync

        public void sync()
                  throws java.io.IOException
        Specified by:
        sync in interface org.apache.hadoop.fs.Syncable
        Overrides:
        sync in class org.apache.hadoop.fs.FSDataOutputStream
        Throws:
        java.io.IOException
      • flush

        public void flush()
                   throws java.io.IOException
        Specified by:
        flush in interface java.io.Flushable
        Overrides:
        flush in class java.io.DataOutputStream
        Throws:
        java.io.IOException
      • hflush

        public void hflush()
                    throws java.io.IOException
        Specified by:
        hflush in interface org.apache.hadoop.fs.Syncable
        Overrides:
        hflush in class org.apache.hadoop.fs.FSDataOutputStream
        Throws:
        java.io.IOException
      • hsync

        public void hsync()
                   throws java.io.IOException
        Specified by:
        hsync in interface org.apache.hadoop.fs.Syncable
        Overrides:
        hsync in class org.apache.hadoop.fs.FSDataOutputStream
        Throws:
        java.io.IOException
      • seek

        public void seek​(long pos)
                  throws java.io.IOException
        Overrides:
        seek in class org.apache.hadoop.fs.FSDataOutputStream
        Throws:
        java.io.IOException
      • getFidStr

        public java.lang.String getFidStr()
                                   throws java.io.IOException
        Throws:
        java.io.IOException
      • getFidServers

        public long[] getFidServers()
                             throws java.io.IOException
        Overrides:
        getFidServers in class org.apache.hadoop.fs.FSDataOutputStream
        Throws:
        java.io.IOException
      • getChunkSize

        public long getChunkSize()
                          throws java.io.IOException
        Throws:
        java.io.IOException