Class MemoizingGroupingProvider

java.lang.Object
com.illumon.iris.db.v2.dataindex.MemoizingGroupingProvider
All Implemented Interfaces:
GroupingProvider
Direct Known Subclasses:
DiskBackedDeferredGroupingProvider, PartitionColumnGroupingProvider, StaticGroupingProvider

public abstract class MemoizingGroupingProvider
extends Object
implements GroupingProvider
A base GroupingProvider that supports memoization.
  • Constructor Details

  • Method Details

    • memoizeGrouping

      @Nullable protected Table memoizeGrouping​(@Nullable GroupingMemoKey memoKey, @NotNull Supplier<Table> groupingFactory)
      Get the memoized grouping, or compute it if none existed.
      Parameters:
      memoKey - the memo key, or null if memoization is not allowed.
      groupingFactory - the method to create the grouping
      Returns:
      the resultant grouping.
    • clearMemoizedGroupings

      public void clearMemoizedGroupings()
      Clear all memoized groupings.