org.apache.hadoop.mapred
Class MapTask.MapOutputBuffer.Buffer

java.lang.Object
  extended by java.io.OutputStream
      extended by org.apache.hadoop.mapred.MapTask.MapOutputBuffer.Buffer
All Implemented Interfaces:
java.io.Closeable, java.io.Flushable
Enclosing class:
MapTask.MapOutputBuffer<K,V>

public class MapTask.MapOutputBuffer.Buffer
extends java.io.OutputStream


Constructor Summary
MapTask.MapOutputBuffer.Buffer()
           
 
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.io.OutputStream
close, flush, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MapTask.MapOutputBuffer.Buffer

public MapTask.MapOutputBuffer.Buffer()
Method Detail

write

public void write(int v)
           throws java.io.IOException
Specified by:
write in class java.io.OutputStream
Throws:
java.io.IOException

write

public void write(byte[] b,
                  int off,
                  int len)
           throws java.io.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 java.io.OutputStream
Throws:
MapBufferTooSmallException - if record is too large to deserialize into the collection buffer.
java.io.IOException


Copyright © 2009 The Apache Software Foundation