Class DatasourceDefn
- java.lang.Object
-
- org.apache.druid.catalog.model.ObjectDefn
-
- org.apache.druid.catalog.model.TableDefn
-
- org.apache.druid.catalog.model.table.DatasourceDefn
-
public class DatasourceDefn extends TableDefn
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classDatasourceDefn.HiddenColumnsDefnstatic classDatasourceDefn.SegmentGranularityFieldDefn
-
Field Summary
Fields Modifier and Type Field Description static StringALL_GRANULARITYCatalog property value for the "all time" granularity.static StringCLUSTER_KEYS_PROPERTYThe clustering column names and sort order for each new segment.static StringHIDDEN_COLUMNS_PROPERTYThe set of existing columns to "delete" (actually, just hide) from the SQL layer.static StringSEALED_PROPERTYstatic StringSEGMENT_GRANULARITY_PROPERTYSegment grain at ingestion and initial compaction.static StringTABLE_TYPEstatic StringTARGET_SEGMENT_ROWS_PROPERTYThe target segment size at ingestion and initial compaction.-
Fields inherited from class org.apache.druid.catalog.model.TableDefn
DESCRIPTION_PROPERTY
-
-
Constructor Summary
Constructors Constructor Description DatasourceDefn()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static booleanisDatasource(String tableType)static 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, validateColumns
-
Methods inherited from class org.apache.druid.catalog.model.ObjectDefn
mergeProperties, name, properties, property, toPropertyMap, typeValue, validate
-
-
-
-
Field Detail
-
SEGMENT_GRANULARITY_PROPERTY
public static final String 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:
- Constant Field Values
-
ALL_GRANULARITY
public static final String ALL_GRANULARITY
Catalog property value for the "all time" granularity.- See Also:
- Constant Field Values
-
TARGET_SEGMENT_ROWS_PROPERTY
public static final String TARGET_SEGMENT_ROWS_PROPERTY
The target segment size at ingestion and initial compaction. If unset, then the system setting is used.- See Also:
- Constant Field Values
-
CLUSTER_KEYS_PROPERTY
public static final String CLUSTER_KEYS_PROPERTY
The clustering column names and sort order for each new segment.- See Also:
- Constant Field Values
-
HIDDEN_COLUMNS_PROPERTY
public static final String 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:
- Constant Field Values
-
SEALED_PROPERTY
public static final String SEALED_PROPERTY
- See Also:
- Constant Field Values
-
TABLE_TYPE
public static final String TABLE_TYPE
- See Also:
- Constant Field Values
-
-
Method Detail
-
validateColumn
protected void validateColumn(ColumnSpec spec)
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
public static boolean isDatasource(String tableType)
-
isDatasource
public static boolean isDatasource(ResolvedTable table)
-
-