@InterfaceAudience.Private @InterfaceStability.Unstable public static class IFile.Writer<K,V> extends Object
IFile.Writer
to write out intermediate map-outputs.Modifier | Constructor and Description |
---|---|
|
Writer(org.apache.hadoop.conf.Configuration conf,
org.apache.hadoop.fs.FSDataOutputStream out,
Class<K> keyClass,
Class<V> valueClass,
org.apache.hadoop.io.compress.CompressionCodec codec,
Counters.Counter writesCounter) |
|
Writer(org.apache.hadoop.conf.Configuration conf,
org.apache.hadoop.fs.FSDataOutputStream out,
Class<K> keyClass,
Class<V> valueClass,
org.apache.hadoop.io.compress.CompressionCodec codec,
Counters.Counter writesCounter,
boolean ownOutputStream) |
protected |
Writer(Counters.Counter writesCounter) |
Modifier and Type | Method and Description |
---|---|
void |
append(org.apache.hadoop.io.DataInputBuffer key,
org.apache.hadoop.io.DataInputBuffer value) |
void |
append(K key,
V value) |
void |
close() |
long |
getCompressedLength() |
DataOutputStream |
getOutputStream() |
long |
getRawLength() |
void |
updateCountersForExternalAppend(long length) |
public Writer(org.apache.hadoop.conf.Configuration conf, org.apache.hadoop.fs.FSDataOutputStream out, Class<K> keyClass, Class<V> valueClass, org.apache.hadoop.io.compress.CompressionCodec codec, Counters.Counter writesCounter) throws IOException
IOException
protected Writer(Counters.Counter writesCounter)
public Writer(org.apache.hadoop.conf.Configuration conf, org.apache.hadoop.fs.FSDataOutputStream out, Class<K> keyClass, Class<V> valueClass, org.apache.hadoop.io.compress.CompressionCodec codec, Counters.Counter writesCounter, boolean ownOutputStream) throws IOException
IOException
public void close() throws IOException
IOException
public void append(K key, V value) throws IOException
IOException
public void append(org.apache.hadoop.io.DataInputBuffer key, org.apache.hadoop.io.DataInputBuffer value) throws IOException
IOException
public DataOutputStream getOutputStream()
public void updateCountersForExternalAppend(long length)
public long getRawLength()
public long getCompressedLength()
Copyright © 2016 Apache Software Foundation. All Rights Reserved.