Package com.illumon.iris.db.v2.by
Class NonKeyColumnAggregationFactory
java.lang.Object
com.illumon.iris.db.v2.by.NonKeyColumnAggregationFactory
- All Implemented Interfaces:
AggregationContextFactory
-
Constructor Summary
ConstructorsConstructorDescriptionNonKeyColumnAggregationFactory(IterativeChunkedOperatorFactory iterativeChunkedOperatorFactory) -
Method Summary
Modifier and TypeMethodDescriptionbooleanShould we allow substitution with aKeyOnlyAggregationFactory(e.g.com.illumon.iris.db.v2.by.AggregationContextmakeAggregationContext(Table table, String... groupByColumns) Make anAggregationContextfor this aggregation.toString()
-
Constructor Details
-
NonKeyColumnAggregationFactory
public NonKeyColumnAggregationFactory(IterativeChunkedOperatorFactory iterativeChunkedOperatorFactory)
-
-
Method Details
-
allowKeyOnlySubstitution
public boolean allowKeyOnlySubstitution()Description copied from interface:AggregationContextFactoryShould we allow substitution with aKeyOnlyAggregationFactory(e.g. selectDistinct) when there are only key columns? Instances whose operators could have side effects or are alreadyKeyOnlyAggregationFactoryshould return false.- Specified by:
allowKeyOnlySubstitutionin interfaceAggregationContextFactory- Returns:
- Whether to allow a
KeyOnlyAggregationFactoryto be substituted for this when there are only key columns
-
makeAggregationContext
public com.illumon.iris.db.v2.by.AggregationContext makeAggregationContext(@NotNull Table table, @NotNull String... groupByColumns) Description copied from interface:AggregationContextFactoryMake anAggregationContextfor this aggregation.- Specified by:
makeAggregationContextin interfaceAggregationContextFactory- Parameters:
table- The sourceTableto aggregategroupByColumns- The key column names- Returns:
- A new or safely reusable
AggregationContext
-
toString
-