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 InputSplitpublic String[] getLocations()
getLocations in class InputSplitpublic 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 Writablein - DataInput to deseriablize this object from.IOExceptionpublic void write(DataOutput out) throws IOException
out.write in interface Writableout - DataOuput to serialize this object into.IOExceptionCopyright © 2013 Apache Software Foundation. All rights reserved.