Class AbstractOptimizableDimFilter

    • Constructor Detail

      • AbstractOptimizableDimFilter

        public AbstractOptimizableDimFilter()
    • Method Detail

      • optimize

        public DimFilter optimize​(boolean mayIncludeUnknown)
        Description copied from interface: DimFilter
        Returns an optimized version of this filter.
        Specified by:
        optimize in interface DimFilter
        Parameters:
        mayIncludeUnknown - whether the optimized filter may need to operate in "includeUnknown" mode. See NullHandling.useThreeValueLogic().
      • toOptimizedFilter

        public final Filter toOptimizedFilter​(boolean mayIncludeUnknown)
        Specified by:
        toOptimizedFilter in interface DimFilter
        Parameters:
        mayIncludeUnknown - whether the optimized filter may need to operate in "includeUnknown" mode. See NullHandling.useThreeValueLogic().
        Returns:
        Return a Filter that implements this DimFilter, after applying optimizations to this DimFilter. A typical implementation will return the result of `optimize().toFilter()` See abstract base class AbstractOptimizableDimFilter for a common implementation shared by current DimFilters. The Filter returned by this method across multiple calls must be the same object: parts of the query stack compare Filters, and returning the same object allows these checks to avoid deep comparisons. (see for an example