public Filtration optimizeFilterOnly ( final DruidQuerySignature querySignature ) { if ( ! intervals . equals ( ImmutableList . of ( eternity ( ) ) ) ) { throw new ISE ( "Cannot optimizeFilterOnly when intervals are set" ) ; } final Filtration transformed = transform ( this , ImmutableList . of ( CombineAndSimplifyBounds . instance ( ) , ConvertBoundsToSelectors . create ( querySignature ) , ConvertSelectorsToIns . create ( querySignature . getRowSignature ( ) ) ) ) ; if ( ! transformed . getIntervals ( ) . equals ( ImmutableList . of ( eternity ( ) ) ) ) { throw new ISE ( "WTF?! optimizeFilterOnly was about to return filtration with intervals?!" ) ; } return transformed ; }
Optimize a Filtration containing only a DimFilter avoiding pulling out intervals .