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 java.lang.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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
JobSplit.SplitMetaInfo
public JobSplit.SplitMetaInfo()
JobSplit.SplitMetaInfo
public JobSplit.SplitMetaInfo(java.lang.String[] locations,
long startOffset,
long inputDataLength)
JobSplit.SplitMetaInfo
public JobSplit.SplitMetaInfo(InputSplit split,
long startOffset)
throws java.io.IOException
- Throws:
java.io.IOException
getLocations
public java.lang.String[] getLocations()
getStartOffset
public long getStartOffset()
getInputDataLength
public long getInputDataLength()
setInputDataLocations
public void setInputDataLocations(java.lang.String[] locations)
setInputDataLength
public void setInputDataLength(long length)
readFields
public void readFields(java.io.DataInput in)
throws java.io.IOException
- Specified by:
readFields
in interface org.apache.hadoop.io.Writable
- Throws:
java.io.IOException
write
public void write(java.io.DataOutput out)
throws java.io.IOException
- Specified by:
write
in interface org.apache.hadoop.io.Writable
- Throws:
java.io.IOException
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
Copyright © 2009 The Apache Software Foundation