Package org.apache.druid.catalog.model
Class TableSpec
- java.lang.Object
-
- org.apache.druid.catalog.model.TableSpec
-
public class TableSpec extends Object
Definition of a table "hint" in the metastore, between client and Druid, and between Druid nodes.This class is a simple holder of values. Semantics on top of the values are provided separately: by the catalog object model for writes, and by various Java classes for reads.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<ColumnSpec>columns()booleanequals(Object o)inthashCode()Map<String,Object>properties()StringtoString()Stringtype()voidvalidate()Validate the final spec.TableSpecwithColumns(List<ColumnSpec> columns)TableSpecwithProperties(Map<String,Object> properties)
-
-
-
Method Detail
-
withColumns
public TableSpec withColumns(List<ColumnSpec> columns)
-
type
public String type()
-
columns
public List<ColumnSpec> columns()
-
validate
public void validate()
Validate the final spec. Updates use this same class, but allow the spec to be partial (and thus inconsistent). Validation should be done on the merged result, not on the updates themselves.
-
-