public class IndexSourceOperator extends Object implements SourceOperator
| Modifier and Type | Class and Description |
|---|---|
static class |
IndexSourceOperator.IndexSourceOperatorFactory |
NOT_BLOCKED| Constructor and Description |
|---|
IndexSourceOperator(OperatorContext operatorContext,
PlanNodeId planNodeId,
ConnectorIndex index,
Function<RecordSet,RecordSet> probeKeyNormalizer) |
| Modifier and Type | Method and Description |
|---|---|
void |
addInput(Page page)
Adds an input page to the operator.
|
Supplier<Optional<UpdatablePageSource>> |
addSplit(Split split) |
void |
close()
This method will always be called before releasing the Operator reference.
|
void |
finish()
Notifies the operator that no more pages will be added and the
operator should finish processing and flush results.
|
OperatorContext |
getOperatorContext() |
Page |
getOutput()
Gets an output page from the operator.
|
PlanNodeId |
getSourceId() |
boolean |
isFinished()
Is this operator completely finished processing and no more
output pages will be produced.
|
boolean |
needsInput()
Returns true if and only if this operator can accept an input page.
|
void |
noMoreSplits() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitfinishMemoryRevoke, isBlocked, startMemoryRevokepublic IndexSourceOperator(OperatorContext operatorContext, PlanNodeId planNodeId, ConnectorIndex index, Function<RecordSet,RecordSet> probeKeyNormalizer)
public OperatorContext getOperatorContext()
getOperatorContext in interface Operatorpublic PlanNodeId getSourceId()
getSourceId in interface SourceOperatorpublic Supplier<Optional<UpdatablePageSource>> addSplit(Split split)
addSplit in interface SourceOperatorpublic void noMoreSplits()
noMoreSplits in interface SourceOperatorpublic void finish()
Operatorpublic boolean isFinished()
OperatorisFinished in interface Operatorpublic boolean needsInput()
OperatorneedsInput in interface Operatorpublic void addInput(Page page)
OperatorneedsInput() returns true.public Page getOutput()
OperatorCopyright © 2012–2019. All rights reserved.