Models are specified using a
model=<uri> parameter on
the JDBC connect string. Calcite loads the model while initializing the
connection. It first parses the JSON, then uses a
ModelHandler as visitor over the parse
There are several examples of schemas in the tutorial.
ClassDescriptionJSON object representing a column.JSON schema element that represents a custom schema.Custom table schema element.Function schema element.JSON object representing a schema that maps to a JDBC database.Element that describes a star schema and provides a framework for defining, recognizing, and recommending materialized views at various levels of aggregation.JSON object representing a schema whose tables are explicitly specified.Element that describes how a table is a materialization of a query.An aggregate function applied to a column (or columns) of a lattice.Root schema element.Schema schema element.Built-in schema types.Information about whether a table allows streaming.Table schema element.Materialized view within a
JsonLattice.Type schema element.JSON object representing a type attribute.View schema element.Reads a model and creates schema objects accordingly.Extra operands automatically injected into a
JsonCustomSchema.operand, as extra context for the adapter.