protected abstract static class EsInputFormat.ShardRecordReader<K,V> extends RecordReader<K,V> implements RecordReader<K,V>
| Constructor and Description |
|---|
EsInputFormat.ShardRecordReader() |
EsInputFormat.ShardRecordReader(InputSplit split,
Configuration job,
Reporter reporter) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
abstract K |
createKey() |
abstract V |
createValue() |
K |
getCurrentKey() |
V |
getCurrentValue() |
long |
getPos() |
float |
getProgress() |
void |
initialize(InputSplit split,
TaskAttemptContext context) |
boolean |
next(K key,
V value) |
boolean |
nextKeyValue() |
protected abstract K |
setCurrentKey(K oldApiKey,
K newApiKey,
java.lang.Object object) |
protected abstract V |
setCurrentValue(V oldApiValue,
V newApiKey,
java.lang.Object object) |
public EsInputFormat.ShardRecordReader()
public EsInputFormat.ShardRecordReader(InputSplit split, Configuration job, Reporter reporter)
public void initialize(InputSplit split, TaskAttemptContext context) throws java.io.IOException
initialize in class RecordReader<K,V>java.io.IOExceptionpublic boolean nextKeyValue()
throws java.io.IOException
nextKeyValue in class RecordReader<K,V>java.io.IOExceptionpublic K getCurrentKey() throws java.io.IOException
getCurrentKey in class RecordReader<K,V>java.io.IOExceptionpublic V getCurrentValue()
getCurrentValue in class RecordReader<K,V>public float getProgress()
getProgress in interface RecordReader<K,V>getProgress in class RecordReader<K,V>public void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseableclose in interface RecordReader<K,V>close in class RecordReader<K,V>java.io.IOExceptionpublic boolean next(K key, V value) throws java.io.IOException
next in interface RecordReader<K,V>java.io.IOExceptionpublic abstract K createKey()
createKey in interface RecordReader<K,V>public abstract V createValue()
createValue in interface RecordReader<K,V>protected abstract V setCurrentValue(V oldApiValue, V newApiKey, java.lang.Object object)
public long getPos()
getPos in interface RecordReader<K,V>