Package org.apache.druid.query.filter
package org.apache.druid.query.filter
-
ClassDescriptionBase class for most
DimFilter.Check to see if an array contains a specific element.Recommended to useRangeFilterinsteadSegmentPrunerimplementation that applies a set ofSegmentPruneragainst eachDataSegmentand will return false forCompositeSegmentPruner.include(DataSegment)if ANY pruner indicates that it should not be included.Wrapper forStringBuilderto re-use common patterns in customDimFilter#toString()implementationsNote: this is not aPublicApior anExtensionPointof Druid.Note: this is not aPublicApior anExtensionPointof Druid.Note: this is not aPublicApior anExtensionPointof Druid.Three-value logic result for matching values with predicates produced byDruidPredicateFactoryDeprecated.Predicatethat wraps another predicate and can catchClassCastExceptionfrom someComparatorand degrades into casting input to an expectedExpressionTypeonce an exception is encountered.FilterBundle is a container for all the goodies used for producing filtered cursors, aImmutableBitmapif the filter can use an index, and/or aFilterBundle.MatcherBundlewhich contains functions to buildValueMatcherandVectorValueMatcherfor any filters which must be evaluated row by row during the cursor scan.Wraps info needed to build aFilterBundle, and provides an estimated compute cost forBitmapColumnIndex.computeBitmapResult(org.apache.druid.query.BitmapResultFactory<T>, boolean).Builder ofValueMatcherandVectorValueMatcher.Uses aDimFilterto check theDimFilter.getDimensionRangeSet(String)againstShardSpec.possibleInDomain(Map)in order to 'prune' a set of segments whose rows would never match a filter and avoid processing those segments in the first place.This class provides a mechanism to influence whether or not indexes are used for aFilterduring processing byFilter.makeFilterBundle(FilterBundle.Builder, BitmapResultFactory, int, int, boolean)(i.e.Approximately like the SQL 'IN' filter, with the main difference being that this will match NULL values if contained in the values list instead of ignoring them.Abstract SQL three-value logic wrapper for some childDimFilterto implement '{filter} IS TRUE' and '{filter} IS FALSE'.Recommended to useEqualityFilterorNullFilterinsteadADruidPredicateFactorythat checks if input values equal a specific, provided value.Approximately like the SQL 'IN' filter, with the main difference being that this will match NULL values if contained in the values list instead of ignoring them.An object that returns a boolean indicating if the "current" row should be selected or not.