public class DoubleMinAggregatorFactory extends SimpleDoubleAggregatorFactory
expression, fieldName, macroTable, name, storeDoubleAsFloat| Constructor and Description |
|---|
DoubleMinAggregatorFactory(String name,
String fieldName) |
DoubleMinAggregatorFactory(String name,
String fieldName,
String expression,
ExprMacroTable macroTable) |
| Modifier and Type | Method and Description |
|---|---|
Object |
combine(Object lhs,
Object rhs)
A method that knows how to combine the outputs of
Aggregator.get() produced via AggregatorFactory.factorize(org.apache.druid.segment.ColumnSelectorFactory) or BufferAggregator.get(java.nio.ByteBuffer, int) produced via AggregatorFactory.factorizeBuffered(org.apache.druid.segment.ColumnSelectorFactory). |
protected Aggregator |
factorize(ColumnSelectorFactory metricFactory,
BaseDoubleColumnValueSelector selector)
Creates an
Aggregator to aggregate values from several rows, by using the provided selector. |
protected BufferAggregator |
factorizeBuffered(ColumnSelectorFactory metricFactory,
BaseDoubleColumnValueSelector selector)
Creates an
BufferAggregator to aggregate values from several rows into a ByteBuffer. |
byte[] |
getCacheKey() |
AggregatorFactory |
getCombiningFactory()
Returns an AggregatorFactory that can be used to combine the output of aggregators from this factory.
|
List<AggregatorFactory> |
getRequiredColumns()
Gets a list of all columns that this AggregatorFactory will scan
|
AggregateCombiner |
makeAggregateCombiner()
Creates an AggregateCombiner to fold rollup aggregation results from serveral "rows" of different indexes during
index merging.
|
protected BaseDoubleColumnValueSelector |
selector(ColumnSelectorFactory metricFactory)
Creates a
ColumnValueSelector for the aggregated column. |
String |
toString() |
deserialize, equals, finalizeComputation, getComparator, getDoubleColumnSelector, getExpression, getFieldName, getMaxIntermediateSize, getMergingFactory, getName, getTypeName, hashCode, requiredFieldsfactorize, factorizeBuffered, getMaxIntermediateSizeWithNulls, makeNullableAggregateCombinermergeAggregators, optimizeForSegmentpublic DoubleMinAggregatorFactory(String name, String fieldName, String expression, ExprMacroTable macroTable)
protected BaseDoubleColumnValueSelector selector(ColumnSelectorFactory metricFactory)
NullableAggregatorFactoryColumnValueSelector for the aggregated column.selector in class NullableAggregatorFactory<BaseDoubleColumnValueSelector>ColumnValueSelectorprotected Aggregator factorize(ColumnSelectorFactory metricFactory, BaseDoubleColumnValueSelector selector)
NullableAggregatorFactoryAggregator to aggregate values from several rows, by using the provided selector.factorize in class NullableAggregatorFactory<BaseDoubleColumnValueSelector>metricFactory - metricFactoryselector - ColumnValueSelector for the column to aggregate.Aggregatorprotected BufferAggregator factorizeBuffered(ColumnSelectorFactory metricFactory, BaseDoubleColumnValueSelector selector)
NullableAggregatorFactoryBufferAggregator to aggregate values from several rows into a ByteBuffer.factorizeBuffered in class NullableAggregatorFactory<BaseDoubleColumnValueSelector>metricFactory - metricFactoryselector - ColumnValueSelector for the column to aggregate.BufferAggregator@Nullable public Object combine(@Nullable Object lhs, @Nullable Object rhs)
AggregatorFactoryAggregator.get() produced via AggregatorFactory.factorize(org.apache.druid.segment.ColumnSelectorFactory) or BufferAggregator.get(java.nio.ByteBuffer, int) produced via AggregatorFactory.factorizeBuffered(org.apache.druid.segment.ColumnSelectorFactory). Note, even though this method is called "combine",
this method's contract *does* allow for mutation of the input objects. Thus, any use of lhs or rhs after calling
this method is highly discouraged.combine in class AggregatorFactorylhs - The left hand side of the combinerhs - The right hand side of the combinepublic AggregateCombiner makeAggregateCombiner()
AggregatorFactoryAggregatorFactory.combine(java.lang.Object, java.lang.Object), with the difference that it uses
ColumnValueSelector and it's subinterfaces to get inputs and implements ColumnValueSelector to provide output.makeAggregateCombiner in class AggregatorFactoryAggregateCombiner,
IndexMergerpublic AggregatorFactory getCombiningFactory()
AggregatorFactorygetCombiningFactory in class AggregatorFactorypublic List<AggregatorFactory> getRequiredColumns()
AggregatorFactorygetRequiredColumns in class AggregatorFactorypublic byte[] getCacheKey()
Copyright © 2011–2019 The Apache Software Foundation. All rights reserved.