org.apache.hadoop.mapreduce.task.reduce
Class InMemoryWriter<K,V>
java.lang.Object
org.apache.hadoop.mapred.IFile.Writer<K,V>
org.apache.hadoop.mapreduce.task.reduce.InMemoryWriter<K,V>
@InterfaceAudience.Private
@InterfaceStability.Unstable
public class InMemoryWriter<K,V>
- extends IFile.Writer<K,V>
Constructor Summary |
InMemoryWriter(org.apache.hadoop.io.BoundedByteArrayOutputStream arrayStream)
|
Method Summary |
void |
append(org.apache.hadoop.io.DataInputBuffer key,
org.apache.hadoop.io.DataInputBuffer value)
|
void |
append(K key,
V value)
|
void |
close()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
InMemoryWriter
public InMemoryWriter(org.apache.hadoop.io.BoundedByteArrayOutputStream arrayStream)
append
public void append(K key,
V value)
throws IOException
- Overrides:
append
in class IFile.Writer<K,V>
- Throws:
IOException
append
public void append(org.apache.hadoop.io.DataInputBuffer key,
org.apache.hadoop.io.DataInputBuffer value)
throws IOException
- Overrides:
append
in class IFile.Writer<K,V>
- Throws:
IOException
close
public void close()
throws IOException
- Overrides:
close
in class IFile.Writer<K,V>
- Throws:
IOException
Copyright © 2012 Apache Software Foundation. All Rights Reserved.