org.apache.hadoop.mapreduce.split
Class JobSplit.SplitMetaInfo

java.lang.Object
  extended by 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


Constructor Summary
JobSplit.SplitMetaInfo()
           
JobSplit.SplitMetaInfo(InputSplit split, long startOffset)
           
JobSplit.SplitMetaInfo(String[] locations, long startOffset, long inputDataLength)
           
 
Method Summary
 long getInputDataLength()
           
 String[] getLocations()
           
 long getStartOffset()
           
 void readFields(DataInput in)
           
 void setInputDataLength(long length)
           
 void setInputDataLocations(String[] locations)
           
 String toString()
           
 void write(DataOutput out)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

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
Method Detail

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.