org.apache.hadoop.mapred
Class MapRIFileOutputStream
java.lang.Object
java.io.OutputStream
java.io.FilterOutputStream
org.apache.hadoop.mapred.IFileOutputStream
org.apache.hadoop.mapred.MapRIFileOutputStream
- All Implemented Interfaces:
- Closeable, Flushable
public class MapRIFileOutputStream
- extends org.apache.hadoop.mapred.IFileOutputStream
| Fields inherited from class org.apache.hadoop.mapred.IFileOutputStream |
barray, finished, sum |
|
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.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MapRIFileOutputStream
public MapRIFileOutputStream(OutputStream out)
- Create a checksum output stream that writes
the bytes to the given stream.
- Parameters:
out -
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.