public class BspInputSplit
extends org.apache.hadoop.mapreduce.InputSplit
implements org.apache.hadoop.io.Writable
Constructor and Description |
---|
BspInputSplit()
Reflection constructor.
|
BspInputSplit(int splitIndex,
int numSplits)
Constructor used by
BspInputFormat . |
Modifier and Type | Method and Description |
---|---|
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) |
public BspInputSplit()
public BspInputSplit(int splitIndex, int numSplits)
BspInputFormat
.splitIndex
- Index of this split.numSplits
- Total number of splits.public long getLength() throws IOException, InterruptedException
getLength
in class org.apache.hadoop.mapreduce.InputSplit
IOException
InterruptedException
public String[] getLocations() throws IOException, InterruptedException
getLocations
in class org.apache.hadoop.mapreduce.InputSplit
IOException
InterruptedException
public void readFields(DataInput in) throws IOException
readFields
in interface org.apache.hadoop.io.Writable
IOException
public void write(DataOutput out) throws IOException
write
in interface org.apache.hadoop.io.Writable
IOException
public int getSplitIndex()
public int getNumSplits()
Copyright © 2011-2020 The Apache Software Foundation. All Rights Reserved.