Class SimpleExtraction
java.lang.Object
org.apache.druid.sql.calcite.expression.SimpleExtraction
Represents a "simple" extraction of a value from a Druid row, which is defined as a column plus an optional
extractionFn. This is useful since identifying simple extractions and treating them specially can allow Druid to
perform additional optimizations.
-
Method Summary
Modifier and TypeMethodDescriptioncascade(ExtractionFn nextExtractionFn) Create a new instance where the providedExtractionFnis composed with the existingExtractionFnof this instance.booleaninthashCode()static SimpleExtractionof(String column, ExtractionFn extractionFn) Create an instance.toDimensionSpec(String outputName, ColumnType outputType) toString()
-
Method Details
-
of
Create an instance.- Parameters:
column- columnextractionFn- extraction fn, if any. Callers should only provide a function ifPlannerContext.isUseExtractionFns()is true.
-
getColumn
-
getExtractionFn
-
cascade
Create a new instance where the providedExtractionFnis composed with the existingExtractionFnof this instance. Callers should only use this method ifPlannerContext.isUseExtractionFns()is true. -
toDimensionSpec
-
equals
-
hashCode
public int hashCode() -
toString
-