Package org.apache.druid.query.dimension
Class ListFilteredDimensionSpec
java.lang.Object
org.apache.druid.query.dimension.BaseFilteredDimensionSpec
org.apache.druid.query.dimension.ListFilteredDimensionSpec
- All Implemented Interfaces:
Cacheable,DimensionSpec
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from class org.apache.druid.query.dimension.BaseFilteredDimensionSpec
delegate -
Constructor Summary
ConstructorsConstructorDescriptionListFilteredDimensionSpec(DimensionSpec delegate, Set<String> values, Boolean isWhitelist) -
Method Summary
Modifier and TypeMethodDescriptionstatic IdMappingbuildAllowListIdMapping(Set<String> values, int cardinality, IdLookup idLookup, ListFilteredDimensionSpec.IndexedGetter<String> fn) static IdMappingbuildDenyListIdMapping(Set<String> values, int cardinality, ListFilteredDimensionSpec.IndexedGetter<String> fn) decorate(DimensionSelector selector) Decorate aDimensionSelector, allowing custom transformation of underlying behavior (e.g.booleanstatic DimensionSelectorfilterAllowList(Set<String> values, DimensionSelector selector, boolean forcePredicateFilter) static DimensionSelectorfilterDenyList(Set<String> values, DimensionSelector selector, boolean forcePredicateFilter) byte[]Get a byte array used as a cache key.inthashCode()booleantoString()withDimension(String newDimension) Returns a copy of this DimensionSpec with the underlying dimension (the value ofDimensionSpec.getDimension()) replaced by "newDimension".Methods inherited from class org.apache.druid.query.dimension.BaseFilteredDimensionSpec
getDelegate, getDimension, getExtractionFn, getOutputName, getOutputType, mustDecorate, preservesOrderingMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.druid.query.dimension.DimensionSpec
canVectorize, decorate, decorate
-
Constructor Details
-
ListFilteredDimensionSpec
-
-
Method Details
-
getValues
-
isWhitelist
public boolean isWhitelist() -
decorate
Description copied from interface:DimensionSpecDecorate aDimensionSelector, allowing custom transformation of underlying behavior (e.g. performing extraction functions in the case ofExtractionDimensionSpec, regex filtering in the case ofRegexFilteredDimensionSpec, and so on). -
buildAllowListIdMapping
-
buildDenyListIdMapping
public static IdMapping buildDenyListIdMapping(Set<String> values, int cardinality, ListFilteredDimensionSpec.IndexedGetter<String> fn) -
filterAllowList
public static DimensionSelector filterAllowList(Set<String> values, DimensionSelector selector, boolean forcePredicateFilter) -
filterDenyList
public static DimensionSelector filterDenyList(Set<String> values, DimensionSelector selector, boolean forcePredicateFilter) -
getCacheKey
public byte[] getCacheKey()Description copied from interface:CacheableGet a byte array used as a cache key.- Returns:
- bytes to be used as cache key - or null if this object should not be cached.
-
withDimension
Description copied from interface:DimensionSpecReturns a copy of this DimensionSpec with the underlying dimension (the value ofDimensionSpec.getDimension()) replaced by "newDimension". -
equals
-
hashCode
public int hashCode() -
toString
-