Interface AggregationContextTransformer

All Known Implementing Classes:
NullColumnAggregationTransformer

public interface AggregationContextTransformer
Transformer to adjust aggregation results for operation building.
  • Field Details

  • Method Details

    • resultColumnFixup

      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. logic.
    • transformResult

      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. Practically this is used to change the attributes for rollups.
    • setReverseLookupFunction

      default void setReverseLookupFunction​(ToIntFunction<Object> reverseLookup)
      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.