org.apache.hadoop.mapred
Class MapRIFileOutputStream

java.lang.Object
  extended by java.io.OutputStream
      extended by java.io.FilterOutputStream
          extended by org.apache.hadoop.mapred.IFileOutputStream
              extended by org.apache.hadoop.mapred.MapRIFileOutputStream
All Implemented Interfaces:
Closeable, Flushable

public class MapRIFileOutputStream
extends org.apache.hadoop.mapred.IFileOutputStream


Field Summary
 
Fields inherited from class org.apache.hadoop.mapred.IFileOutputStream
barray, finished, sum
 
Fields inherited from class java.io.FilterOutputStream
out
 
Constructor Summary
MapRIFileOutputStream(OutputStream out)
          Create a checksum output stream that writes the bytes to the given stream.
 
Method Summary
 void finish()
          Finishes writing data to the output stream, by writing the checksum bytes to the end.
 void finish(long decompBytes, long compBytes)
           
 
Methods inherited from class org.apache.hadoop.mapred.IFileOutputStream
close, write, write
 
Methods inherited from class java.io.FilterOutputStream
flush, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MapRIFileOutputStream

public MapRIFileOutputStream(OutputStream out)
Create a checksum output stream that writes the bytes to the given stream.

Parameters:
out -
Method Detail

finish

public void finish()
            throws IOException
Finishes writing data to the output stream, by writing the checksum bytes to the end. The underlying stream is not closed or flushed.

Overrides:
finish in class org.apache.hadoop.mapred.IFileOutputStream
Throws:
IOException

finish

public void finish(long decompBytes,
                   long compBytes)
            throws IOException
Overrides:
finish in class org.apache.hadoop.mapred.IFileOutputStream
Throws:
IOException


Copyright © 2014 Apache Software Foundation. All Rights Reserved.