Package org.apache.druid.query.operator
Class NaivePartitioningOperator
java.lang.Object
org.apache.druid.query.operator.AbstractPartitioningOperator
org.apache.druid.query.operator.NaivePartitioningOperator
- All Implemented Interfaces:
Operator
This naive partitioning operator assumes that it's child operator always gives it RowsAndColumns objects that are
a superset of the partitions that it needs to provide. It will never attempt to make a partition larger than a
single RowsAndColumns object that it is given from its child Operator. A different operator should be used
if that is an important bit of functionality to have.
Additionally, this assumes that data has been pre-sorted according to the partitioning columns. If it is given data that has not been pre-sorted, an exception is expected to be thrown.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.druid.query.operator.AbstractPartitioningOperator
AbstractPartitioningOperator.AbstractReceiver, AbstractPartitioningOperator.Continuation, AbstractPartitioningOperator.HandleContinuationResultNested classes/interfaces inherited from interface org.apache.druid.query.operator.Operator
Operator.Receiver, Operator.Signal -
Field Summary
Fields inherited from class org.apache.druid.query.operator.AbstractPartitioningOperator
child, partitionColumns -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected Operator.ReceivercreateReceiver(Operator.Receiver delegate, AtomicReference<Iterator<RowsAndColumns>> iterHolder) Methods inherited from class org.apache.druid.query.operator.AbstractPartitioningOperator
goOrContinue, handleNonGoCases
-
Constructor Details
-
NaivePartitioningOperator
-
-
Method Details
-
handleContinuation
protected AbstractPartitioningOperator.HandleContinuationResult handleContinuation(Operator.Receiver receiver, AbstractPartitioningOperator.Continuation cont) - Specified by:
handleContinuationin classAbstractPartitioningOperator
-
createReceiver
protected Operator.Receiver createReceiver(Operator.Receiver delegate, AtomicReference<Iterator<RowsAndColumns>> iterHolder) - Specified by:
createReceiverin classAbstractPartitioningOperator
-