Package org.apache.calcite.model
Class JsonRoot
java.lang.Object
org.apache.calcite.model.JsonRoot
Root schema element.
A POJO with fields of Boolean, String, ArrayList,
LinkedHashMap, per Jackson simple data
binding.
Schema structure is as follows:
RootJsonSchema(in collectionschemas)JsonType(in collectiontypes)JsonTable(in collectiontables)JsonColumn(in collectioncolumns)JsonStream(in fieldstream)JsonViewJsonFunction(in collectionfunctions)JsonLattice(in collectionlattices)JsonMeasure(in collectiondefaultMeasures)JsonTile(in collectiontiles)JsonMeasure(in collectionmeasures)JsonMaterialization(in collectionmaterializations)JsonType(in collectiontypes)
See the JSON model reference.
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal @Nullable StringName of the schema that will become the default schema for connections to Calcite that use this model.final List<JsonSchema>List of schema elements.List of types in the root schema.final StringSchema model version number. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
version
Schema model version number. Required, must have value "1.0". -
defaultSchema
Name of the schema that will become the default schema for connections to Calcite that use this model.Optional, case-sensitive. If specified, there must be a schema in this model with this name.
-
schemas
List of schema elements.The list may be empty.
-
types
List of types in the root schema.Such types global, that is, shared by all schemas in the model.
The list may be empty.
-
-
Constructor Details
-
JsonRoot
-