elasticsearch-hadoop

org.elasticsearch.hadoop.mr
Class EsInputFormat.ShardInputSplit

java.lang.Object
  extended by org.apache.hadoop.mapreduce.InputSplit
      extended by 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


Constructor Summary
EsInputFormat.ShardInputSplit()
           
EsInputFormat.ShardInputSplit(String nodeIp, int httpPort, String nodeId, String nodeName, Integer shard, String mapping, String settings)
           
 
Method Summary
 long getLength()
           
 String[] getLocations()
           
 void readFields(DataInput in)
           
 String toString()
           
 void write(DataOutput out)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

EsInputFormat.ShardInputSplit

public EsInputFormat.ShardInputSplit()

EsInputFormat.ShardInputSplit

public EsInputFormat.ShardInputSplit(String nodeIp,
                                     int httpPort,
                                     String nodeId,
                                     String nodeName,
                                     Integer shard,
                                     String mapping,
                                     String settings)
Method Detail

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

elasticsearch-hadoop