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
public class PrefixFilteredDimensionSpec extends BaseFilteredDimensionSpec
-
-
Field Summary
-
Fields inherited from class org.apache.druid.query.dimension.BaseFilteredDimensionSpec
delegate
-
-
Constructor Summary
Constructors Constructor Description PrefixFilteredDimensionSpec(DimensionSpec delegate, String prefix)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DimensionSelectordecorate(DimensionSelector selector)Decorate aDimensionSelector, allowing custom transformation of underlying behavior (e.g.booleanequals(Object o)byte[]getCacheKey()Get a byte array used as a cache key.StringgetPrefix()inthashCode()StringtoString()DimensionSpecwithDimension(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, preservesOrdering
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.apache.druid.query.dimension.DimensionSpec
canVectorize, decorate, decorate
-
-
-
-
Constructor Detail
-
PrefixFilteredDimensionSpec
public PrefixFilteredDimensionSpec(DimensionSpec delegate, String prefix)
-
-
Method Detail
-
getPrefix
public String getPrefix()
-
decorate
public DimensionSelector decorate(DimensionSelector selector)
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:
- a cache key
-
withDimension
public DimensionSpec withDimension(String newDimension)
Description copied from interface:DimensionSpecReturns a copy of this DimensionSpec with the underlying dimension (the value ofDimensionSpec.getDimension()) replaced by "newDimension".
-
-