org.apache.hadoop.mapreduce.task.reduce
Class ShuffleHeader

java.lang.Object
  extended by org.apache.hadoop.mapreduce.task.reduce.ShuffleHeader
All Implemented Interfaces:
org.apache.hadoop.io.Writable

@InterfaceAudience.Private
@InterfaceStability.Stable
public class ShuffleHeader
extends Object
implements org.apache.hadoop.io.Writable

Shuffle Header information that is sent by the TaskTracker and deciphered by the Fetcher thread of Reduce task


Constructor Summary
ShuffleHeader()
           
ShuffleHeader(String mapId, long compressedLength, long uncompressedLength, int forReduce)
           
 
Method Summary
 void readFields(DataInput in)
           
 void write(DataOutput out)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ShuffleHeader

public ShuffleHeader()

ShuffleHeader

public ShuffleHeader(String mapId,
                     long compressedLength,
                     long uncompressedLength,
                     int forReduce)
Method Detail

readFields

public void readFields(DataInput in)
                throws IOException
Specified by:
readFields in interface org.apache.hadoop.io.Writable
Throws:
IOException

write

public void write(DataOutput out)
           throws IOException
Specified by:
write in interface org.apache.hadoop.io.Writable
Throws:
IOException


Copyright © 2012 Apache Software Foundation. All Rights Reserved.