org.elasticsearch.hadoop.mr
Class EsInputFormat.ShardInputSplit
java.lang.Object
org.apache.hadoop.mapreduce.InputSplit
org.elasticsearch.hadoop.mr.EsInputFormat.ShardInputSplit
- All Implemented Interfaces:
- Writable, InputSplit
- Enclosing class:
- EsInputFormat<K,V>
protected static class EsInputFormat.ShardInputSplit
- extends InputSplit
- implements InputSplit
EsInputFormat.ShardInputSplit
public EsInputFormat.ShardInputSplit()
EsInputFormat.ShardInputSplit
public EsInputFormat.ShardInputSplit(String nodeIp,
int httpPort,
String nodeId,
String nodeName,
Integer shard,
String mapping,
String settings)
getLength
public long getLength()
- Specified by:
getLength
in interface InputSplit
- Specified by:
getLength
in class InputSplit
getLocations
public String[] getLocations()
- Specified by:
getLocations
in interface InputSplit
- Specified by:
getLocations
in class InputSplit
write
public void write(DataOutput out)
throws IOException
- Specified by:
write
in interface Writable
- Throws:
IOException
readFields
public void readFields(DataInput in)
throws IOException
- Specified by:
readFields
in interface Writable
- Throws:
IOException
toString
public String toString()
- Overrides:
toString
in class Object