Interface AggregationContextTransformer


public interface AggregationContextTransformer
Transformer to adjust aggregation results for operation building.
  • Method Summary

    Modifier and Type
    Method
    Description
    default void
    resultColumnFixup(@NotNull 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
    supplyRowLookup(@NotNull Supplier<AggregationRowLookup> rowLookupFactory)
    The helper calls the transformer with a supplier to create a suitable row lookup function for the result table.
    default QueryTable
    transformResult(@NotNull QueryTable table)
    Before we return the result, each transformer has a chance to replace it or change it as it sees fit.
  • Method Details

    • resultColumnFixup

      default void resultColumnFixup(@NotNull @NotNull 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(@NotNull @NotNull 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 and trees.
    • supplyRowLookup

      default void supplyRowLookup(@NotNull @NotNull Supplier<AggregationRowLookup> rowLookupFactory)
      The helper calls the transformer with a supplier to create a suitable row lookup function for the result table.
      Parameters:
      rowLookupFactory - Factory for a function that translates an opaque key to an integer row position in the result table, which is also the row key in the result table