public class ExtractionDimensionSpec extends Object implements DimensionSpec
| Constructor and Description |
|---|
ExtractionDimensionSpec(String dimension,
String outputName,
ExtractionFn extractionFn) |
ExtractionDimensionSpec(String dimension,
String outputName,
ValueType outputType,
ExtractionFn extractionFn) |
ExtractionDimensionSpec(String dimension,
String outputName,
ValueType outputType,
ExtractionFn extractionFn,
ExtractionFn dimExtractionFn) |
| Modifier and Type | Method and Description |
|---|---|
DimensionSelector |
decorate(DimensionSelector selector)
Decorate a
DimensionSelector, allowing custom transformation of underlying behavior (e.g. |
boolean |
equals(Object o) |
byte[] |
getCacheKey() |
String |
getDimension() |
ExtractionFn |
getExtractionFn() |
String |
getOutputName() |
ValueType |
getOutputType() |
int |
hashCode() |
boolean |
mustDecorate()
Does this DimensionSpec require that decorate() be called to produce correct results?
|
boolean |
preservesOrdering()
If the
DimensionSpec.decorate(org.apache.druid.segment.DimensionSelector) methods alter the underlying behavior of the dimension selector, does this alteration
preserve the original ordering? |
String |
toString() |
DimensionSpec |
withDimension(String newDimension)
Returns a copy of this DimensionSpec with the underlying dimension (the value of
DimensionSpec.getDimension())
replaced by "newDimension". |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcanVectorize, decorate, decoratepublic ExtractionDimensionSpec(String dimension, String outputName, ValueType outputType, ExtractionFn extractionFn, @Deprecated ExtractionFn dimExtractionFn)
public ExtractionDimensionSpec(String dimension, String outputName, ExtractionFn extractionFn)
public ExtractionDimensionSpec(String dimension, String outputName, ValueType outputType, ExtractionFn extractionFn)
public String getDimension()
getDimension in interface DimensionSpecpublic String getOutputName()
getOutputName in interface DimensionSpecpublic ValueType getOutputType()
getOutputType in interface DimensionSpecpublic ExtractionFn getExtractionFn()
getExtractionFn in interface DimensionSpecpublic DimensionSelector decorate(DimensionSelector selector)
DimensionSpecDimensionSelector, allowing custom transformation of underlying behavior (e.g. performing
extraction functions in the case of ExtractionDimensionSpec, regex filtering in the case of
RegexFilteredDimensionSpec, and so on).decorate in interface DimensionSpecpublic boolean mustDecorate()
DimensionSpecmustDecorate in interface DimensionSpecpublic byte[] getCacheKey()
getCacheKey in interface Cacheablepublic boolean preservesOrdering()
DimensionSpecDimensionSpec.decorate(org.apache.druid.segment.DimensionSelector) methods alter the underlying behavior of the dimension selector, does this alteration
preserve the original ordering?preservesOrdering in interface DimensionSpecpublic DimensionSpec withDimension(String newDimension)
DimensionSpecDimensionSpec.getDimension())
replaced by "newDimension".withDimension in interface DimensionSpecCopyright © 2011–2021 The Apache Software Foundation. All rights reserved.