|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.hadoop.mapreduce.InputSplit
org.apache.giraph.bsp.BspInputSplit
public class BspInputSplit
This InputSplit will not give any ordering or location data. It is used internally by BspInputFormat (which determines how many tasks to run the application on). Users should not use this directly.
| Constructor Summary | |
|---|---|
BspInputSplit()
Reflection constructor. |
|
BspInputSplit(int splitIndex,
int numSplits)
Constructor used by BspInputFormat. |
|
| Method Summary | |
|---|---|
long |
getLength()
|
String[] |
getLocations()
|
int |
getNumSplits()
Get the number of splits for this application. |
int |
getSplitIndex()
Get the index of this split. |
void |
readFields(DataInput in)
|
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 |
|---|
public BspInputSplit()
public BspInputSplit(int splitIndex,
int numSplits)
BspInputFormat.
splitIndex - Index of this split.numSplits - Total number of splits.| Method Detail |
|---|
public long getLength()
throws IOException,
InterruptedException
getLength in class org.apache.hadoop.mapreduce.InputSplitIOException
InterruptedException
public String[] getLocations()
throws IOException,
InterruptedException
getLocations in class org.apache.hadoop.mapreduce.InputSplitIOException
InterruptedException
public void readFields(DataInput in)
throws IOException
readFields in interface org.apache.hadoop.io.WritableIOException
public void write(DataOutput out)
throws IOException
write in interface org.apache.hadoop.io.WritableIOExceptionpublic int getSplitIndex()
public int getNumSplits()
public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||