Class DataSchema
java.lang.Object
org.apache.druid.segment.indexing.DataSchema
- Direct Known Subclasses:
CombinedDataSchema
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionDataSchema(String dataSource, TimestampSpec timestampSpec, DimensionsSpec dimensionsSpec, AggregatorFactory[] aggregators, GranularitySpec granularitySpec, TransformSpec transformSpec, List<AggregateProjectionSpec> projections, Map<String, Object> parserMap, com.fasterxml.jackson.databind.ObjectMapper objectMapper) -
Method Summary
Modifier and TypeMethodDescriptionstatic DataSchema.Builderbuilder()static DataSchema.Builderbuilder(DataSchema schema) Deprecated.toString()static voidvalidateProjections(List<AggregateProjectionSpec> projections, Granularity segmentGranularity) withDimensionsSpec(DimensionsSpec dimensionsSpec) withGranularitySpec(GranularitySpec granularitySpec) withTransformSpec(TransformSpec transformSpec)
-
Constructor Details
-
DataSchema
public DataSchema(String dataSource, @Nullable TimestampSpec timestampSpec, @Nullable DimensionsSpec dimensionsSpec, AggregatorFactory[] aggregators, GranularitySpec granularitySpec, TransformSpec transformSpec, @Nullable List<AggregateProjectionSpec> projections, @Deprecated @Nullable Map<String, Object> parserMap, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
-
-
Method Details
-
builder
-
builder
-
getDataSource
-
getTimestampSpec
-
getDimensionsSpec
-
getAggregators
-
getGranularitySpec
-
getTransformSpec
-
getProjections
-
getProjectionNames
-
getParserMap
Deprecated. -
getParser
-
withGranularitySpec
-
withTransformSpec
-
withDimensionsSpec
-
toString
-
validateProjections
public static void validateProjections(@Nullable List<AggregateProjectionSpec> projections, @Nullable Granularity segmentGranularity)
-