@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
Writable
in
.
For efficiency, implementations should attempt to re-use storage in the existing object where possible.
readFields
in interface Writable
in
- DataInput
to deseriablize this object from.IOException
public void write(DataOutput out) throws IOException
Writable
out
.write
in interface Writable
out
- DataOuput
to serialize this object into.IOException
Copyright © 2013 Apache Software Foundation. All rights reserved.