public class TableRecordReaderImpl extends Object
| Constructor and Description |
|---|
TableRecordReaderImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close current split.
|
org.ojai.Value |
getCurrentKey()
Returns current key.
|
org.ojai.Document |
getCurrentValue()
Returns current value as Document.
|
void |
initialize(org.apache.hadoop.mapreduce.InputSplit inputsplit,
org.apache.hadoop.mapreduce.TaskAttemptContext cntxt)
Initialize reader/iterator.
|
boolean |
nextKeyValue()
Positions reader/iterator to the next row.
|
void |
setCondition(org.ojai.store.QueryCondition c) |
void |
setFieldPath(String fieldPath) |
void |
setTable(com.mapr.db.Table t)
Sets table name.
|
public void close()
public org.ojai.Value getCurrentKey()
throws IOException,
InterruptedException
IOExceptionInterruptedExceptionpublic org.ojai.Document getCurrentValue()
throws IOException,
InterruptedException
IOExceptionInterruptedExceptionpublic boolean nextKeyValue()
throws IOException,
InterruptedException
true if there is a row.IOExceptionInterruptedExceptionpublic void initialize(org.apache.hadoop.mapreduce.InputSplit inputsplit,
org.apache.hadoop.mapreduce.TaskAttemptContext cntxt)
throws IOException,
InterruptedException
inputsplit - split on which the iterator is to be initialized.cntxt - current task context.IOExceptionInterruptedExceptionpublic void setTable(com.mapr.db.Table t)
t - input table.public void setCondition(org.ojai.store.QueryCondition c)
public void setFieldPath(String fieldPath)
Copyright © 2016 Mapr Technologies, Inc.. All rights reserved.