@InterfaceAudience.Private @InterfaceStability.Stable public class ShuffleHeader extends Object implements 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 |
|---|---|
void |
readFields(DataInput in)
Deserialize the fields of this object from
in. |
void |
write(DataOutput out)
Serialize the fields of this object to
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 void readFields(DataInput in) throws IOException
Writablein.
For efficiency, implementations should attempt to re-use storage in the existing object where possible.
readFields in interface Writablein - DataInput to deseriablize this object from.IOExceptionpublic void write(DataOutput out) throws IOException
Writableout.write in interface Writableout - DataOuput to serialize this object into.IOExceptionCopyright © 2013 Apache Software Foundation. All rights reserved.