Package org.apache.calcite.model
Class JsonRoot
- java.lang.Object
-
- org.apache.calcite.model.JsonRoot
-
public class JsonRoot extends java.lang.Object
Root schema element.A POJO with fields of
Boolean
,String
,ArrayList
,LinkedHashMap
, per Jackson simple data binding.Schema structure is as follows:
Root
JsonSchema
(in collectionschemas
)JsonType
(in collectiontypes
)JsonTable
(in collectiontables
)JsonColumn
(in collectioncolumns
)JsonStream
(in fieldstream
)JsonView
JsonFunction
(in collectionfunctions
)JsonLattice
(in collectionlattices
)JsonMeasure
(in collectiondefaultMeasures
)JsonTile
(in collectiontiles
)JsonMeasure
(in collectionmeasures
)JsonMaterialization
(in collectionmaterializations
)See the JSON model reference.
-
-
Field Summary
Fields Modifier and Type Field Description java.lang.String
defaultSchema
Name of the schema that will become the default schema for connections to Calcite that use this model.java.util.List<JsonSchema>
schemas
List of schema elements.java.lang.String
version
Schema model version number.
-
Constructor Summary
Constructors Constructor Description JsonRoot()
-
-
-
Field Detail
-
version
public java.lang.String version
Schema model version number. Required, must have value "1.0".
-
defaultSchema
public java.lang.String 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
public final java.util.List<JsonSchema> schemas
List of schema elements.The list may be empty.
-
-