@Public public class GenericInputSplit extends Object implements InputSplit, Serializable
| Constructor and Description |
|---|
GenericInputSplit(int partitionNumber,
int totalNumberOfPartitions)
Creates a generic input split with the given split number.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
int |
getSplitNumber()
Returns the number of this input split.
|
int |
getTotalNumberOfSplits() |
int |
hashCode() |
String |
toString() |
public GenericInputSplit(int partitionNumber,
int totalNumberOfPartitions)
partitionNumber - The number of the split's partition.totalNumberOfPartitions - The total number of the splits (partitions).public int getSplitNumber()
InputSplitgetSplitNumber in interface InputSplitpublic int getTotalNumberOfSplits()
Copyright © 2014–2018 The Apache Software Foundation. All rights reserved.