Package org.apache.druid.data.input.impl
Class DimensionsSpec
java.lang.Object
org.apache.druid.data.input.impl.DimensionsSpec
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final booleanstatic final DimensionsSpecstatic final StringParameter name for allowing any sort order.static final StringWarning about non-time ordering to include in error messages whenPARAMETER_FORCE_TIME_SORTis not set. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic DimensionsSpec.Builderbuilder()static DimensionsSpec.Builderbuilder(DimensionsSpec dimensionsSpec) static DimensionSchemaconvertSpatialSchema(SpatialDimensionSchema spatialSchema) booleanstatic List<DimensionSchema> getDefaultSchemas(List<String> dimNames) static List<DimensionSchema> getDefaultSchemas(List<String> dimNames, DimensionSchema.MultiValueHandling multiValueHandling) Deprecated.booleanWhether this spec represents a set of fixed dimensions.inthashCode()booleanReturnsisForceSegmentSortByTimeConfigured()if nonnull, otherwiseDEFAULT_FORCE_TIME_SORT.booleantoString()booleanwithDimensionExclusions(Set<String> dimExs) withDimensions(List<DimensionSchema> dims) withSpatialDimensions(List<SpatialDimensionSchema> spatials) Deprecated.
-
Field Details
-
PARAMETER_FORCE_TIME_SORT
Parameter name for allowing any sort order. Also used as an MSQ context parameter, for some consistency between MSQ and native ingest configuration.- See Also:
-
WARNING_NON_TIME_SORT_ORDER
Warning about non-time ordering to include in error messages whenPARAMETER_FORCE_TIME_SORTis not set. -
DEFAULT_FORCE_TIME_SORT
public static final boolean DEFAULT_FORCE_TIME_SORT- See Also:
-
EMPTY
-
-
Constructor Details
-
DimensionsSpec
-
-
Method Details
-
getDefaultSchemas
-
getDefaultSchemas
public static List<DimensionSchema> getDefaultSchemas(List<String> dimNames, DimensionSchema.MultiValueHandling multiValueHandling) -
convertSpatialSchema
-
builder
-
builder
-
getDimensions
-
getDimensionExclusions
-
isIncludeAllDimensions
public boolean isIncludeAllDimensions() -
useSchemaDiscovery
public boolean useSchemaDiscovery() -
isForceSegmentSortByTimeConfigured
-
isForceSegmentSortByTime
public boolean isForceSegmentSortByTime()ReturnsisForceSegmentSortByTimeConfigured()if nonnull, otherwiseDEFAULT_FORCE_TIME_SORT. -
getSpatialDimensions
Deprecated. -
getDimensionNames
-
getSchema
-
hasFixedDimensions
public boolean hasFixedDimensions()Whether this spec represents a set of fixed dimensions. Will be false if schema discovery is enabled, even if some dimensions are explicitly defined. -
withDimensions
-
withDimensionExclusions
-
withSpatialDimensions
Deprecated. -
equals
-
hashCode
public int hashCode() -
toString
-