Package com.illumon.iris.db.v2.by
Interface AggregationContextTransformer
- All Known Implementing Classes:
NullColumnAggregationTransformer
public interface AggregationContextTransformer
Transformer to adjust aggregation results for operation building.
-
Field Summary
Fields Modifier and Type Field Description static AggregationContextTransformer[]
ZERO_LENGTH_AGGREGATION_CONTEXT_TRANSFORMER_ARRAY
-
Method Summary
Modifier and Type Method Description default void
resultColumnFixup(Map<String,ColumnSource<?>> resultColumns)
After we have created the key columns, and the default result columns, allow each transformer to add additional columns to the result set that are not handled by the regular modified column set transformer, etc.default void
setReverseLookupFunction(ToIntFunction<Object> reverseLookup)
The helper calls the transformer with a suitable reverse lookup function for this table.default QueryTable
transformResult(QueryTable table)
Before we return the result, each transformer has a chance to replace it or change it as it sees fit.
-
Field Details
-
Method Details
-
resultColumnFixup
After we have created the key columns, and the default result columns, allow each transformer to add additional columns to the result set that are not handled by the regular modified column set transformer, etc. logic. -
transformResult
Before we return the result, each transformer has a chance to replace it or change it as it sees fit. Practically this is used to change the attributes for rollups. -
setReverseLookupFunction
The helper calls the transformer with a suitable reverse lookup function for this table.- Parameters:
reverseLookup
- a function that translates an object to an integer position in our output.
-