@Public public class LocatableInputSplit extends Object implements InputSplit, Serializable
| Constructor and Description |
|---|
LocatableInputSplit(int splitNumber,
String hostname)
Creates a new locatable input split that refers to a single host as its data location.
|
LocatableInputSplit(int splitNumber,
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(Object obj) |
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() |
String |
toString() |
public LocatableInputSplit(int splitNumber,
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,
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 InputSplitpublic String[] getHostnames()
Copyright © 2014–2016 The Apache Software Foundation. All rights reserved.