@InterfaceAudience.Private @InterfaceStability.Stable public class ShuffleHeader extends Object implements org.apache.hadoop.io.Writable
Modifier and Type | Field and Description |
---|---|
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 and Description |
---|
ShuffleHeader() |
ShuffleHeader(String mapId,
long compressedLength,
long uncompressedLength,
int forReduce) |
Modifier and Type | Method and Description |
---|---|
long |
getCompressedLength() |
String |
getMapId() |
int |
getPartition() |
long |
getUncompressedLength() |
void |
readFields(DataInput in) |
void |
write(DataOutput out) |
public static final String HTTP_HEADER_NAME
public static final String DEFAULT_HTTP_HEADER_NAME
public static final String HTTP_HEADER_VERSION
public static final String DEFAULT_HTTP_HEADER_VERSION
public ShuffleHeader()
public ShuffleHeader(String mapId, long compressedLength, long uncompressedLength, int forReduce)
public String getMapId()
public int getPartition()
public long getUncompressedLength()
public long getCompressedLength()
public void readFields(DataInput in) throws IOException
readFields
in interface org.apache.hadoop.io.Writable
IOException
public void write(DataOutput out) throws IOException
write
in interface org.apache.hadoop.io.Writable
IOException
Copyright © 2016 Apache Software Foundation. All rights reserved.