protected static class EsInputFormat.WritableEsInputRecordReader extends EsInputFormat.AbstractWritableEsInputRecordReader<Map<Writable,Writable>>
Constructor and Description |
---|
WritableEsInputRecordReader() |
WritableEsInputRecordReader(InputSplit split,
Configuration job,
Reporter reporter) |
Modifier and Type | Method and Description |
---|---|
Map<Writable,Writable> |
createValue() |
protected Map<Writable,Writable> |
setCurrentValue(Map<Writable,Writable> hadoopValue,
Object object)
Sets the current value.
|
createKey, setCurrentKey
close, getCurrentKey, getCurrentValue, getPos, getProgress, initialize, next, nextKeyValue
public WritableEsInputRecordReader()
public WritableEsInputRecordReader(InputSplit split, Configuration job, Reporter reporter)
public Map<Writable,Writable> createValue()
createValue
in interface RecordReader<Text,Map<Writable,Writable>>
createValue
in class EsInputFormat.EsInputRecordReader<Text,Map<Writable,Writable>>
protected Map<Writable,Writable> setCurrentValue(Map<Writable,Writable> hadoopValue, Object object)
EsInputFormat.EsInputRecordReader
setCurrentValue
in class EsInputFormat.EsInputRecordReader<Text,Map<Writable,Writable>>
hadoopValue
- hadoop valueobject
- the actual value to read