@InterfaceAudience.Private @InterfaceStability.Unstable public class InMemoryWriter<K,V> extends IFile.Writer<K,V>
| Constructor and Description |
|---|
InMemoryWriter(BoundedByteArrayOutputStream arrayStream) |
| Modifier and Type | Method and Description |
|---|---|
void |
append(DataInputBuffer key,
DataInputBuffer value) |
void |
append(K key,
V value) |
void |
close() |
getCompressedLength, getOutputStream, getRawLength, updateCountersForExternalAppendpublic InMemoryWriter(BoundedByteArrayOutputStream arrayStream)
public void append(K key, V value) throws IOException
append in class IFile.Writer<K,V>IOExceptionpublic void append(DataInputBuffer key, DataInputBuffer value) throws IOException
append in class IFile.Writer<K,V>IOExceptionpublic void close()
throws IOException
close in class IFile.Writer<K,V>IOExceptionCopyright © 2013 Apache Software Foundation. All rights reserved.