All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.apache.calcite.model.JsonRoot Maven / Gradle / Ivy

There is a newer version: 1.21.0.263
Show newest version
/*
 * Licensed to the Apache Software Foundation (ASF) under one or more
 * contributor license agreements.  See the NOTICE file distributed with
 * this work for additional information regarding copyright ownership.
 * The ASF licenses this file to you under the Apache License, Version 2.0
 * (the "License"); you may not use this file except in compliance with
 * the License.  You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package org.apache.calcite.model;

import java.util.ArrayList;
import java.util.List;

/**
 * Root schema element.
 *
 * 

A POJO with fields of {@link Boolean}, {@link String}, {@link ArrayList}, * {@link java.util.LinkedHashMap LinkedHashMap}, per Jackson simple data * binding.

* *

Schema structure is as follows:

* * *
{@code Root}
 *   {@link JsonSchema} (in collection {@link JsonRoot#schemas schemas})
 *     {@link JsonType} (in collection {@link JsonMapSchema#types types})
 *     {@link JsonTable} (in collection {@link JsonMapSchema#tables tables})
 *       {@link JsonColumn} (in collection {@link JsonTable#columns columns})
 *       {@link JsonStream} (in field {@link JsonTable#stream stream})
 *     {@link JsonView}
 *     {@link JsonFunction} (in collection {@link JsonMapSchema#functions functions})
 *     {@link JsonLattice} (in collection {@link JsonSchema#lattices lattices})
 *       {@link JsonMeasure} (in collection {@link JsonLattice#defaultMeasures defaultMeasures})
 *       {@link JsonTile} (in collection {@link JsonLattice#tiles tiles})
 *         {@link JsonMeasure} (in collection {@link JsonTile#measures measures})
 *     {@link JsonMaterialization} (in collection {@link JsonSchema#materializations materializations})
 * 
* * *

See the JSON * model reference. */ public class JsonRoot { /** Schema model version number. Required, must have value "1.0". */ public String version; /** 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. */ public String defaultSchema; /** List of schema elements. * *

The list may be empty. */ public final List schemas = new ArrayList<>(); } // End JsonRoot.java





© 2015 - 2024 Weber Informatics LLC | Privacy Policy