public static final class DistSum.Machine.SummationSplit extends InputSplit implements Writable, Container<Summation>
Constructor and Description |
---|
DistSum.Machine.SummationSplit() |
Modifier and Type | Method and Description |
---|---|
Summation |
getElement() |
long |
getLength()
Get the size of the split, so that the input splits can be sorted by size.
|
String[] |
getLocations()
Get the list of nodes by name where the data for the split would be local.
|
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 Summation getElement()
getElement
in interface Container<Summation>
public long getLength()
getLength
in class InputSplit
public String[] getLocations()
getLocations
in class InputSplit
public void readFields(DataInput in) throws IOException
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
out
.write
in interface Writable
out
- DataOuput
to serialize this object into.IOException
Copyright © 2013 Apache Software Foundation. All rights reserved.