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
public class NaivePartitioningOperator extends AbstractPartitioningOperator
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.HandleContinuationResult
-
Nested 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 Constructor Description NaivePartitioningOperator(List<String> partitionColumns, Operator child)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Operator.Receiver
createReceiver(Operator.Receiver delegate, AtomicReference<Iterator<RowsAndColumns>> iterHolder)
protected AbstractPartitioningOperator.HandleContinuationResult
handleContinuation(Operator.Receiver receiver, AbstractPartitioningOperator.Continuation cont)
-
Methods inherited from class org.apache.druid.query.operator.AbstractPartitioningOperator
goOrContinue, handleNonGoCases
-
-
-
-
Method Detail
-
handleContinuation
protected AbstractPartitioningOperator.HandleContinuationResult handleContinuation(Operator.Receiver receiver, AbstractPartitioningOperator.Continuation cont)
- Specified by:
handleContinuation
in classAbstractPartitioningOperator
-
createReceiver
protected Operator.Receiver createReceiver(Operator.Receiver delegate, AtomicReference<Iterator<RowsAndColumns>> iterHolder)
- Specified by:
createReceiver
in classAbstractPartitioningOperator
-
-