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) -
Method Summary
Modifier and TypeMethodDescriptionstatic DataSchema.Builderbuilder()static DataSchema.Builderbuilder(DataSchema schema) booleaninthashCode()toString()static voidvalidateProjections(List<AggregateProjectionSpec> projections, Granularity segmentGranularity) Validates that eachAggregateProjectionSpecdoes not have duplicate column names inAggregateProjectionSpec.groupingColumnsandAggregateProjectionSpec.aggregatorsand that segmentGranularityis at least as coarse asAggregateProjectionSchema.effectiveGranularitywithDimensionsSpec(DimensionsSpec dimensionsSpec) withGranularitySpec(GranularitySpec granularitySpec) withTransformSpec(TransformSpec transformSpec)
-
Constructor Details
-
DataSchema
public DataSchema(String dataSource, @Nullable TimestampSpec timestampSpec, @Nullable DimensionsSpec dimensionsSpec, @Nullable AggregatorFactory[] aggregators, @Nullable GranularitySpec granularitySpec, TransformSpec transformSpec, @Nullable List<AggregateProjectionSpec> projections, @Deprecated @Nullable Map<String, Object> parserMap)
-
-
Method Details
-
builder
-
builder
-
getDataSource
-
getTimestampSpec
-
getDimensionsSpec
-
getAggregators
-
getGranularitySpec
-
getTransformSpec
-
getProjections
-
getProjectionNames
-
withGranularitySpec
-
withTransformSpec
-
withDimensionsSpec
-
toString
-
validateProjections
public static void validateProjections(@Nullable List<AggregateProjectionSpec> projections, @Nullable Granularity segmentGranularity) Validates that eachAggregateProjectionSpecdoes not have duplicate column names inAggregateProjectionSpec.groupingColumnsandAggregateProjectionSpec.aggregatorsand that segmentGranularityis at least as coarse asAggregateProjectionSchema.effectiveGranularity -
equals
-
hashCode
public int hashCode()
-