org.apache.hadoop.mapreduce.split
Class JobSplit.SplitMetaInfo
java.lang.Object
org.apache.hadoop.mapreduce.split.JobSplit.SplitMetaInfo
- All Implemented Interfaces:
- org.apache.hadoop.io.Writable
- Enclosing class:
- JobSplit
public static class JobSplit.SplitMetaInfo
- extends Object
- implements org.apache.hadoop.io.Writable
This represents the meta information about the task split.
The main fields are
- start offset in actual split
- data length that will be processed in this split
- hosts on which this split is local
JobSplit.SplitMetaInfo
public JobSplit.SplitMetaInfo()
JobSplit.SplitMetaInfo
public JobSplit.SplitMetaInfo(String[] locations,
long startOffset,
long inputDataLength)
JobSplit.SplitMetaInfo
public JobSplit.SplitMetaInfo(InputSplit split,
long startOffset)
throws IOException
- Throws:
IOException
getLocations
public String[] getLocations()
getStartOffset
public long getStartOffset()
getInputDataLength
public long getInputDataLength()
setInputDataLocations
public void setInputDataLocations(String[] locations)
setInputDataLength
public void setInputDataLength(long length)
readFields
public void readFields(DataInput in)
throws IOException
- Specified by:
readFields
in interface org.apache.hadoop.io.Writable
- Throws:
IOException
write
public void write(DataOutput out)
throws IOException
- Specified by:
write
in interface org.apache.hadoop.io.Writable
- Throws:
IOException
toString
public String toString()
- Overrides:
toString
in class Object
Copyright © 2012 Apache Software Foundation. All Rights Reserved.