Class DatasourceDefn
java.lang.Object
org.apache.druid.catalog.model.ObjectDefn
org.apache.druid.catalog.model.TableDefn
org.apache.druid.catalog.model.table.DatasourceDefn
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classstatic classstatic class -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringCatalog property value for the "all time" granularity.static final StringThe clustering column names and sort order for each new segment.static final StringThe set of existing columns to "delete" (actually, just hide) from the SQL layer.static final Stringstatic final Stringstatic final StringSegment grain at ingestion and initial compaction.static final Stringstatic final StringThe target segment size at ingestion and initial compaction.Fields inherited from class org.apache.druid.catalog.model.TableDefn
DESCRIPTION_PROPERTY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanisDatasource(String tableType) Check ifTableSpec.type()isTABLE_TYPEstatic booleanisDatasource(ResolvedTable table) protected voidvalidateColumn(ColumnSpec spec) Table-specific validation of a column spec.Methods inherited from class org.apache.druid.catalog.model.TableDefn
bind, merge, mergeColumns, validate, validateColumnsMethods inherited from class org.apache.druid.catalog.model.ObjectDefn
mergeProperties, name, properties, property, toPropertyMap, typeValue, validate
-
Field Details
-
SEGMENT_GRANULARITY_PROPERTY
Segment grain at ingestion and initial compaction. Aging rules may override the value as segments age. If not provided here, then it must be provided at ingestion time.- See Also:
-
ALL_GRANULARITY
Catalog property value for the "all time" granularity.- See Also:
-
TARGET_SEGMENT_ROWS_PROPERTY
The target segment size at ingestion and initial compaction. If unset, then the system setting is used.- See Also:
-
CLUSTER_KEYS_PROPERTY
The clustering column names and sort order for each new segment.- See Also:
-
PROJECTIONS_KEYS_PROPERTY
- See Also:
-
HIDDEN_COLUMNS_PROPERTY
The set of existing columns to "delete" (actually, just hide) from the SQL layer. Used to "remove" unwanted columns to avoid the need to rewrite existing segments to accomplish the task.- See Also:
-
SEALED_PROPERTY
- See Also:
-
TABLE_TYPE
- See Also:
-
-
Constructor Details
-
DatasourceDefn
public DatasourceDefn()
-
-
Method Details
-
validateColumn
Description copied from class:TableDefnTable-specific validation of a column spec. Override for table definitions that need table-specific validation rules.- Overrides:
validateColumnin classTableDefn
-
isDatasource
Check ifTableSpec.type()isTABLE_TYPE -
isDatasource
-