T
- type of the dataO
- type of InputSplit used for splitting the datapublic class DataSource<T,O extends InputSplit<T>> extends DataObjectImpl<T>
Constructor and Description |
---|
DataSource(Config cfg,
InputPartitioner<T,O> input,
int numSplits) |
Modifier and Type | Method and Description |
---|---|
InputSplit<T> |
getNextSplit(int id) |
addPartition, getID, getPartition, getPartitionCount, getPartitions
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getAnyPartition, getLowestPartition
public DataSource(Config cfg, InputPartitioner<T,O> input, int numSplits)
public InputSplit<T> getNextSplit(int id)