Class DefaultFramedOnHeapAggregatable
java.lang.Object
org.apache.druid.query.rowsandcols.semantic.DefaultFramedOnHeapAggregatable
- All Implemented Interfaces:
FramedOnHeapAggregatable
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaggregateAll(WindowFrame frame, AggregatorFactory[] aggFactories) Aggregates the data according to theWindowFrameusing theAggregatorFactoryobjects provided.static Iterable<org.apache.druid.query.rowsandcols.semantic.DefaultFramedOnHeapAggregatable.AggInterval>buildIteratorFor(AppendableRowsAndColumns rac, WindowFrame frame) static ObjectcloneAggValue(AggregatorFactory aggFactory, Object value) static intinvertedOrderForLastK(int x, int n, int k) Inverts order for the last K elements.
-
Constructor Details
-
DefaultFramedOnHeapAggregatable
-
-
Method Details
-
aggregateAll
Description copied from interface:FramedOnHeapAggregatableAggregates the data according to theWindowFrameusing theAggregatorFactoryobjects provided.- Specified by:
aggregateAllin interfaceFramedOnHeapAggregatable- Parameters:
frame- window frame definitionaggFactories- definition of aggregations to be done- Returns:
- a RowsAndColumns that contains columns representing the results of the aggregation from the AggregatorFactories
-
buildIteratorFor
public static Iterable<org.apache.druid.query.rowsandcols.semantic.DefaultFramedOnHeapAggregatable.AggInterval> buildIteratorFor(AppendableRowsAndColumns rac, WindowFrame frame) -
invertedOrderForLastK
public static int invertedOrderForLastK(int x, int n, int k) Inverts order for the last K elements. For n=3, k=2 - it changes the iteration to 0,2,1 -
cloneAggValue
-