Package org.apache.druid.query.dimension
Class PrefixFilteredDimensionSpec
java.lang.Object
org.apache.druid.query.dimension.BaseFilteredDimensionSpec
org.apache.druid.query.dimension.PrefixFilteredDimensionSpec
- All Implemented Interfaces:
Cacheable,DimensionSpec
-
Field Summary
Fields inherited from class org.apache.druid.query.dimension.BaseFilteredDimensionSpec
delegate -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondecorate(DimensionSelector selector) Decorate aDimensionSelector, allowing custom transformation of underlying behavior (e.g.booleanbyte[]Get a byte array used as a cache key.inthashCode()toString()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
-
PrefixFilteredDimensionSpec
-
-
Method Details
-
getPrefix
-
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). -
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
-