@InterfaceAudience.Private @InterfaceStability.Unstable public class InMemoryWriter<K,V> extends IFile.Writer<K,V>
Constructor and Description |
---|
InMemoryWriter(org.apache.hadoop.io.BoundedByteArrayOutputStream arrayStream) |
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() |
getCompressedLength, getOutputStream, getRawLength, updateCountersForExternalAppend
public InMemoryWriter(org.apache.hadoop.io.BoundedByteArrayOutputStream arrayStream)
public void append(K key, V value) throws IOException
append
in class IFile.Writer<K,V>
IOException
public void append(org.apache.hadoop.io.DataInputBuffer key, org.apache.hadoop.io.DataInputBuffer value) throws IOException
append
in class IFile.Writer<K,V>
IOException
public void close() throws IOException
close
in class IFile.Writer<K,V>
IOException
Copyright © 2017 Apache Software Foundation. All Rights Reserved.