public abstract class LocatableInputSplit<T> extends java.lang.Object implements InputSplit<T>
| Constructor and Description |
|---|
LocatableInputSplit(int splitNumber,
java.lang.String hostname)
Creates a new locatable input split that refers to a single host as its data location.
|
LocatableInputSplit(int splitNumber,
java.lang.String[] hostnames)
Creates a new locatable input split that refers to a multiple host as its data location.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String[] |
getHostnames()
Returns the names of the hosts storing the data this input split refers to
|
int |
getSplitNumber()
Returns the number of this input split.
|
int |
hashCode() |
java.lang.String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitclose, configure, nextRecord, open, open, reachedEndpublic LocatableInputSplit(int splitNumber,
java.lang.String[] hostnames)
splitNumber - The number of the splithostnames - The names of the hosts storing the data this input split refers to.public LocatableInputSplit(int splitNumber,
java.lang.String hostname)
splitNumber - The number of the split.hostname - The names of the host storing the data this input split refers to.public int getSplitNumber()
InputSplitgetSplitNumber in interface InputSplit<T>public java.lang.String[] getHostnames()
public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object