java.io.Closeable, java.lang.AutoCloseablepublic class TableRecordReader extends RecordReader<K,V>
| Constructor | Description |
|---|---|
TableRecordReader() |
| Modifier and Type | Method | Description |
|---|---|---|
void |
close() |
Close the record reader.
|
PrimaryKey |
getCurrentKey() |
Get the current key.
|
Row |
getCurrentValue() |
Get the current value.
|
Table |
getKvTable() |
|
float |
getProgress() |
The current progress of the record reader through its data.
|
void |
initialize(InputSplit split,
TaskAttemptContext context) |
Called once at initialization.
|
boolean |
nextKeyValue() |
Read the next row.
|
void |
setIndexKey(IndexKey key) |
|
void |
setIterFailHook(oracle.kv.impl.test.TestHook<RecordValue> iterFailHook) |
|
void |
setMultiRowOptions(FieldRange fieldRange) |
|
void |
setPrimaryKey(PrimaryKey key) |
|
void |
setQueryInfo(int newQueryBy,
java.lang.String newWhereClause) |
|
void |
setStore(KVStore testStore) |
For testing only; to support the use of a mocked store.
|
protected Row current
public PrimaryKey getCurrentKey() throws java.io.IOException, java.lang.InterruptedException
getCurrentKey in class RecordReader<PrimaryKey,Row>java.io.IOException - if an I/O error occursjava.lang.InterruptedException - if the operation is interruptedpublic Row getCurrentValue() throws java.io.IOException, java.lang.InterruptedException
getCurrentValue in class RecordReader<PrimaryKey,Row>java.io.IOException - if an I/O error occursjava.lang.InterruptedException - if the operation is interruptedpublic void initialize(InputSplit split, TaskAttemptContext context) throws java.io.IOException, java.lang.InterruptedException
initialize in class RecordReader<K,V>split - the split that defines the range of records to readcontext - the information about the taskjava.io.IOException - if an I/O error occursjava.lang.InterruptedException - if the operation is interruptedpublic boolean nextKeyValue()
throws java.io.IOException
nextKeyValue in class RecordReader<K,V>java.io.IOException - if an I/O error occurspublic float getProgress()
getProgress in class RecordReader<K,V>public void close()
throws java.io.IOException
close in interface java.lang.AutoCloseableclose in interface java.io.Closeableclose in class RecordReader<K,V>java.io.IOExceptionpublic Table getKvTable()
public void setIndexKey(IndexKey key)
public void setPrimaryKey(PrimaryKey key)
public void setMultiRowOptions(FieldRange fieldRange)
public void setStore(KVStore testStore)
public void setQueryInfo(int newQueryBy,
java.lang.String newWhereClause)
public void setIterFailHook(oracle.kv.impl.test.TestHook<RecordValue> iterFailHook)
Copyright (c) 2011, 2018 Oracle and/or its affiliates. All rights reserved.