Package org.elasticsearch.hadoop.mr
Class EsInputFormat.EsInputSplit
java.lang.Object
org.apache.hadoop.mapreduce.InputSplit
org.elasticsearch.hadoop.mr.EsInputFormat.EsInputSplit
- All Implemented Interfaces:
Writable,InputSplit
- Enclosing class:
- EsInputFormat<K,
V>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlongString[]org.elasticsearch.hadoop.rest.PartitionDefinitionvoidreadFields(DataInput in) toString()voidwrite(DataOutput out) Methods inherited from class org.apache.hadoop.mapreduce.InputSplit
getLocationInfo
-
Constructor Details
-
EsInputSplit
public EsInputSplit() -
EsInputSplit
public EsInputSplit(org.elasticsearch.hadoop.rest.PartitionDefinition partition)
-
-
Method Details
-
getLength
public long getLength()- Specified by:
getLengthin interfaceInputSplit- Specified by:
getLengthin classInputSplit
-
getLocations
- Specified by:
getLocationsin interfaceInputSplit- Specified by:
getLocationsin classInputSplit
-
write
- Specified by:
writein interfaceWritable- Throws:
IOException
-
readFields
- Specified by:
readFieldsin interfaceWritable- Throws:
IOException
-
getPartition
public org.elasticsearch.hadoop.rest.PartitionDefinition getPartition() -
toString
-