Package com.illumon.iris.db.v2.by
Class FirstOrLastByAggregationFactory
java.lang.Object
com.illumon.iris.db.v2.by.FirstOrLastByAggregationFactory
- All Implemented Interfaces:
AggregationContextFactory
public class FirstOrLastByAggregationFactory extends Object implements AggregationContextFactory
-
Field Summary
Fields Modifier and Type Field Description static booleanENABLE_UNTRACKED_LAST_BY -
Constructor Summary
Constructors Constructor Description FirstOrLastByAggregationFactory(boolean isFirst)FirstOrLastByAggregationFactory(boolean isFirst, String exposeRedirection) -
Method Summary
Modifier and Type Method Description booleanallowKeyOnlySubstitution()Should we allow substitution with aKeyOnlyAggregationFactory(e.g.com.illumon.iris.db.v2.by.AggregationContextmakeAggregationContext(Table table, String... groupByColumns)Make anAggregationContextfor this aggregation.StringtoString()
-
Field Details
-
ENABLE_UNTRACKED_LAST_BY
public static boolean ENABLE_UNTRACKED_LAST_BY
-
-
Constructor Details
-
FirstOrLastByAggregationFactory
public FirstOrLastByAggregationFactory(boolean isFirst) -
FirstOrLastByAggregationFactory
-
-
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
-