|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.hadoop.mapreduce.InputSplit org.apache.hadoop.mapreduce.lib.join.CompositeInputSplit
@InterfaceAudience.Public @InterfaceStability.Stable public class CompositeInputSplit
This InputSplit contains a set of child InputSplits. Any InputSplit inserted into this collection must have a public default constructor.
Constructor Summary | |
---|---|
CompositeInputSplit()
|
|
CompositeInputSplit(int capacity)
|
Method Summary | |
---|---|
void |
add(InputSplit s)
Add an InputSplit to this collection. |
InputSplit |
get(int i)
Get ith child InputSplit. |
long |
getLength()
Return the aggregate length of all child InputSplits currently added. |
long |
getLength(int i)
Get the length of ith child InputSplit. |
String[] |
getLocation(int i)
getLocations from ith InputSplit. |
String[] |
getLocations()
Collect a set of hosts from all child InputSplits. |
void |
readFields(DataInput in)
Deserialize the fields of this object from in . |
void |
write(DataOutput out)
Write splits in the following format. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CompositeInputSplit()
public CompositeInputSplit(int capacity)
Method Detail |
---|
public void add(InputSplit s) throws IOException, InterruptedException
IOException
- If capacity was not specified during construction
or if capacity has been reached.
InterruptedException
public InputSplit get(int i)
public long getLength() throws IOException
getLength
in class InputSplit
IOException
public long getLength(int i) throws IOException, InterruptedException
IOException
InterruptedException
public String[] getLocations() throws IOException, InterruptedException
getLocations
in class InputSplit
IOException
InterruptedException
public String[] getLocation(int i) throws IOException, InterruptedException
IOException
InterruptedException
public void write(DataOutput out) throws IOException
<count><class1><class2>...<classn><split1><split2>...<splitn>
write
in interface Writable
out
- DataOuput
to serialize this object into.
IOException
public void readFields(DataInput in) throws IOException
in
.
For efficiency, implementations should attempt to re-use storage in the existing object where possible.
readFields
in interface Writable
in
- DataInput
to deseriablize this object from.
IOException
- If the child InputSplit cannot be read, typically
for failing access checks.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |