public class PartitionedOutputOperator extends Object implements Operator
| Modifier and Type | Class and Description |
|---|---|
static class |
PartitionedOutputOperator.PartitionedOutputFactory |
static class |
PartitionedOutputOperator.PartitionedOutputInfo |
static class |
PartitionedOutputOperator.PartitionedOutputOperatorFactory |
NOT_BLOCKED| Constructor and Description |
|---|
PartitionedOutputOperator(OperatorContext operatorContext,
List<Type> sourceTypes,
Function<Page,Page> pagePreprocessor,
PartitionFunction partitionFunction,
List<Integer> partitionChannels,
List<Optional<NullableValue>> partitionConstants,
boolean replicatesAnyRow,
OptionalInt nullChannel,
OutputBuffer outputBuffer,
PagesSerdeFactory serdeFactory,
io.airlift.units.DataSize maxMemory) |
| Modifier and Type | Method and Description |
|---|---|
void |
addInput(Page page)
Adds an input page to the operator.
|
void |
finish()
Notifies the operator that no more pages will be added and the
operator should finish processing and flush results.
|
PartitionedOutputOperator.PartitionedOutputInfo |
getInfo() |
OperatorContext |
getOperatorContext() |
Page |
getOutput()
Gets an output page from the operator.
|
com.google.common.util.concurrent.ListenableFuture<?> |
isBlocked()
Returns a future that will be completed when the operator becomes
unblocked.
|
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.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitclose, finishMemoryRevoke, startMemoryRevokepublic PartitionedOutputOperator(OperatorContext operatorContext, List<Type> sourceTypes, Function<Page,Page> pagePreprocessor, PartitionFunction partitionFunction, List<Integer> partitionChannels, List<Optional<NullableValue>> partitionConstants, boolean replicatesAnyRow, OptionalInt nullChannel, OutputBuffer outputBuffer, PagesSerdeFactory serdeFactory, io.airlift.units.DataSize maxMemory)
public OperatorContext getOperatorContext()
getOperatorContext in interface Operatorpublic PartitionedOutputOperator.PartitionedOutputInfo getInfo()
public void finish()
Operatorpublic boolean isFinished()
OperatorisFinished in interface Operatorpublic com.google.common.util.concurrent.ListenableFuture<?> isBlocked()
OperatorNOT_BLOCKED.public boolean needsInput()
OperatorneedsInput in interface Operatorpublic void addInput(Page page)
OperatorneedsInput() returns true.Copyright © 2012–2019. All rights reserved.