Package org.apache.calcite.adapter.druid
Class DefaultDimensionSpec
java.lang.Object
org.apache.calcite.adapter.druid.DefaultDimensionSpec
- All Implemented Interfaces:
DimensionSpec
,DruidJson
Default implementation of DimensionSpec.
The default implementation returns dimension values as is and optionally renames the dimension.
-
Constructor Summary
ConstructorDescriptionDefaultDimensionSpec
(String dimension) DefaultDimensionSpec
(String dimension, String outputName, @Nullable DruidType outputType) -
Method Summary
Modifier and TypeMethodDescription@Nullable ExtractionFunction
void
write
(com.fasterxml.jackson.core.JsonGenerator generator)
-
Constructor Details
-
DefaultDimensionSpec
-
DefaultDimensionSpec
-
-
Method Details
-
write
- Specified by:
write
in interfaceDruidJson
- Throws:
IOException
-
getOutputName
- Specified by:
getOutputName
in interfaceDimensionSpec
-
getOutputType
- Specified by:
getOutputType
in interfaceDimensionSpec
-
getExtractionFn
- Specified by:
getExtractionFn
in interfaceDimensionSpec
-
getDimension
- Specified by:
getDimension
in interfaceDimensionSpec
-