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


Field Summary
static String DEFAULT_HTTP_HEADER_NAME
           
static String DEFAULT_HTTP_HEADER_VERSION
           
static String HTTP_HEADER_NAME
          Header info of the shuffle http request/response
static String HTTP_HEADER_VERSION
           
 
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
 

Field Detail

HTTP_HEADER_NAME

public static final String HTTP_HEADER_NAME
Header info of the shuffle http request/response

See Also:
Constant Field Values

DEFAULT_HTTP_HEADER_NAME

public static final String DEFAULT_HTTP_HEADER_NAME
See Also:
Constant Field Values

HTTP_HEADER_VERSION

public static final String HTTP_HEADER_VERSION
See Also:
Constant Field Values

DEFAULT_HTTP_HEADER_VERSION

public static final String DEFAULT_HTTP_HEADER_VERSION
See Also:
Constant Field Values
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 © 2013 Apache Software Foundation. All Rights Reserved.