public class RowkeyLookup extends AbstractDocumentFilter
| Modifier and Type | Field and Description |
|---|---|
static int |
MAX_BATCH_SIZE |
docIter, upstreamStreamisUsed| Constructor and Description |
|---|
RowkeyLookup(org.ojai.DocumentStream upstreamStream,
SharedTable sharedTable,
org.ojai.store.QueryCondition queryCond,
org.ojai.FieldPath... fieldPaths)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
closeDerived()
Perform whatever steps the derived class requires for closing.
|
void |
getQueryPlan(java.util.List<java.util.Map<java.lang.String,java.lang.Object>> planList) |
java.util.Iterator<org.ojai.Document> |
iterator() |
void |
setDesiredRows(LongValue longValue)
Provide a means for an element to query how many rows it would be
desirable for it to produce at any given moment.
|
getIndexUsed, getQueryPath, getQueryPlancancelQuery, checkState, close, documentReaders, isCanceled, isClosed, streamTopublic RowkeyLookup(org.ojai.DocumentStream upstreamStream,
SharedTable sharedTable,
org.ojai.store.QueryCondition queryCond,
org.ojai.FieldPath... fieldPaths)
upstreamStream - the upstream document sourceexecutorService - service to execute upstream source asynchronouslysharedTable - the table to do the rowkey lookups inqueryCond - query conditions to apply to records (may filter out records)fieldPaths - projection fields, if any (may be null)public java.util.Iterator<org.ojai.Document> iterator()
iterator in interface java.lang.Iterable<org.ojai.Document>iterator in interface org.ojai.DocumentStreamiterator in class AbstractDocumentFilterprotected void closeDerived()
AbstractDocumentStreamAbstractDocumentStream.close() method.closeDerived in class AbstractDocumentFilterpublic void getQueryPlan(java.util.List<java.util.Map<java.lang.String,java.lang.Object>> planList)
public void setDesiredRows(LongValue longValue)
PipelineControlsetDesiredRows in interface PipelineControlsetDesiredRows in class AbstractDocumentFilterlongValue - interface for requesting the currently desired number of rows