@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, updateCountersForExternalAppendpublic InMemoryWriter(org.apache.hadoop.io.BoundedByteArrayOutputStream arrayStream)
public void append(K key, V value) throws IOException
append in class IFile.Writer<K,V>IOExceptionpublic void append(org.apache.hadoop.io.DataInputBuffer key,
org.apache.hadoop.io.DataInputBuffer value)
throws IOException
append in class IFile.Writer<K,V>IOExceptionpublic void close()
throws IOException
close in class IFile.Writer<K,V>IOExceptionCopyright © 2008–2022 Apache Software Foundation. All rights reserved.