Package com.illumon.iris.db.v2.by
Class ByAggregationFactory
java.lang.Object
com.illumon.iris.db.v2.by.ByAggregationFactory
- All Implemented Interfaces:
AggregationContextFactory
An
AggregationContextFactory used in the implementation of Table.by(com.illumon.iris.db.v2.by.AggregationStateFactory, com.illumon.iris.db.v2.select.SelectColumn...).-
Method Summary
Modifier and TypeMethodDescriptionbooleanShould we allow substitution with aKeyOnlyAggregationFactory(e.g.static QueryTableby(AggregationControl aggregationControl, QueryTable inputTable, String... groupByColumnNames) static QueryTableby(AggregationControl aggregationControl, QueryTable inputTable, String indexColumnName, SelectColumn[] groupByColumns) static QueryTableby(QueryTable inputTable, SelectColumn[] groupByColumns) static QueryTableby(QueryTable inputTable, String... groupByColumnNames) static QueryTableindexOnlyBy(QueryTable inputTable, String indexColumnName, SelectColumn... groupByColumns) com.illumon.iris.db.v2.by.AggregationContextmakeAggregationContext(Table inputTable, String... groupByColumnNames) Make anAggregationContextfor this aggregation.toString()
-
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 inputTable, @NotNull String... groupByColumnNames) Description copied from interface:AggregationContextFactoryMake anAggregationContextfor this aggregation.- Specified by:
makeAggregationContextin interfaceAggregationContextFactory- Parameters:
inputTable- The sourceTableto aggregategroupByColumnNames- The key column names- Returns:
- A new or safely reusable
AggregationContext
-
toString
-
by
-
by
-
by
public static QueryTable by(@NotNull AggregationControl aggregationControl, @NotNull QueryTable inputTable, @NotNull String... groupByColumnNames) -
indexOnlyBy
public static QueryTable indexOnlyBy(@NotNull QueryTable inputTable, @NotNull String indexColumnName, @NotNull SelectColumn... groupByColumns) -
by
public static QueryTable by(@NotNull AggregationControl aggregationControl, @NotNull QueryTable inputTable, @Nullable String indexColumnName, @NotNull SelectColumn[] groupByColumns)
-