org.apache.hadoop.mapred
Class MapTask.MapOutputBuffer.Buffer
java.lang.Object
java.io.OutputStream
org.apache.hadoop.mapred.MapTask.MapOutputBuffer.Buffer
- All Implemented Interfaces:
- Closeable, Flushable
- Enclosing class:
- MapTask.MapOutputBuffer<K,V>
public class MapTask.MapOutputBuffer.Buffer
- extends OutputStream
Method Summary |
void |
write(byte[] b,
int off,
int len)
Attempt to write a sequence of bytes to the collection buffer. |
void |
write(int v)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MapTask.MapOutputBuffer.Buffer
public MapTask.MapOutputBuffer.Buffer()
write
public void write(int v)
throws IOException
- Specified by:
write
in class OutputStream
- Throws:
IOException
write
public void write(byte[] b,
int off,
int len)
throws IOException
- Attempt to write a sequence of bytes to the collection buffer.
This method will block if the spill thread is running and it
cannot write.
- Overrides:
write
in class OutputStream
- Throws:
MapBufferTooSmallException
- if record is too large to
deserialize into the collection buffer.
IOException
Copyright © 2014 Apache Software Foundation. All Rights Reserved.