Package org.apache.calcite.model

Provides model files, in JSON format, defining schemas and other metadata.

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 tree.

There are standard implementations of schema and table, but the user can provide their own by implementing the SchemaFactory or TableFactory interfaces and including a custom schema in the model.

There are several examples of schemas in the tutorial.

Skip navigation links

Copyright © 2012–2017 The Apache Software Foundation. All rights reserved.