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.

  • Constructor Details

  • Method Details

    • withProperties

      public TableSpec withProperties(Map<String,Object> properties)
    • withColumns

      public TableSpec withColumns(List<ColumnSpec> columns)
    • type

      public String type()
    • properties

      public Map<String,Object> properties()
    • 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.
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object