blob: 15d58afb11cc1adc992c1720af586d6f6aeada21 [file] [log] [blame]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html lang="zh">
<head>
<!-- Generated by javadoc -->
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>org.apache.calcite.model (Apache Calcite calcite API)</title>
<link rel="stylesheet" type="text/css" href="../../../../stylesheet.css" title="Style">
<script type="text/javascript" src="../../../../script.js"></script>
</head>
<body>
<script type="text/javascript"><!--
try {
if (location.href.indexOf('is-external=true') == -1) {
parent.document.title="org.apache.calcite.model (Apache Calcite calcite API)";
}
}
catch(err) {
}
//-->
</script>
<noscript>
<div>您的浏览器已禁用 JavaScript。</div>
</noscript>
<!-- ========= START OF TOP NAVBAR ======= -->
<div class="topNav"><a name="navbar.top">
<!-- -->
</a>
<div class="skipNav"><a href="#skip.navbar.top" title="跳过导航链接">跳过导航链接</a></div>
<a name="navbar.top.firstrow">
<!-- -->
</a>
<ul class="navList" title="导航">
<li><a href="../../../../overview-summary.html">概览</a></li>
<li class="navBarCell1Rev">程序包</li>
<li></li>
<li><a href="package-tree.html"></a></li>
<li><a href="../../../../deprecated-list.html">已过时</a></li>
<li><a href="../../../../index-all.html">索引</a></li>
<li><a href="../../../../help-doc.html">帮助</a></li>
</ul>
<div class="aboutLanguage"><b>Apache Calcite</b></div>
</div>
<div class="subNav">
<ul class="navList">
<li><a href="../../../../org/apache/calcite/materialize/package-summary.html">上一个程序包</a></li>
<li><a href="../../../../org/apache/calcite/piglet/package-summary.html">下一个程序包</a></li>
</ul>
<ul class="navList">
<li><a href="../../../../index.html?org/apache/calcite/model/package-summary.html" target="_top">框架</a></li>
<li><a href="package-summary.html" target="_top">无框架</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_top">
<li><a href="../../../../allclasses-noframe.html">所有类</a></li>
</ul>
<div>
<script type="text/javascript"><!--
allClassesLink = document.getElementById("allclasses_navbar_top");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
//-->
</script>
</div>
<a name="skip.navbar.top">
<!-- -->
</a></div>
<!-- ========= END OF TOP NAVBAR ========= -->
<div class="header">
<h1 title="程序包" class="title">程序包&nbsp;org.apache.calcite.model</h1>
<div class="docSummary">
<div class="block">Provides model files, in JSON format, defining schemas and other metadata.</div>
</div>
<p>请参阅:&nbsp;<a href="#package.description">说明</a></p>
</div>
<div class="contentContainer">
<ul class="blockList">
<li class="blockList">
<table class="typeSummary" border="0" cellpadding="3" cellspacing="0" summary="类概要表, 列表类和解释">
<caption><span>类概要</span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colFirst" scope="col"></th>
<th class="colLast" scope="col">说明</th>
</tr>
<tbody>
<tr class="altColor">
<td class="colFirst"><a href="../../../../org/apache/calcite/model/JsonColumn.html" title="org.apache.calcite.model中的类">JsonColumn</a></td>
<td class="colLast">
<div class="block">JSON object representing a column.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><a href="../../../../org/apache/calcite/model/JsonCustomSchema.html" title="org.apache.calcite.model中的类">JsonCustomSchema</a></td>
<td class="colLast">
<div class="block">JSON schema element that represents a custom schema.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><a href="../../../../org/apache/calcite/model/JsonCustomTable.html" title="org.apache.calcite.model中的类">JsonCustomTable</a></td>
<td class="colLast">
<div class="block">Custom table schema element.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><a href="../../../../org/apache/calcite/model/JsonFunction.html" title="org.apache.calcite.model中的类">JsonFunction</a></td>
<td class="colLast">
<div class="block">Function schema element.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><a href="../../../../org/apache/calcite/model/JsonJdbcSchema.html" title="org.apache.calcite.model中的类">JsonJdbcSchema</a></td>
<td class="colLast">
<div class="block">JSON object representing a schema that maps to a JDBC database.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><a href="../../../../org/apache/calcite/model/JsonLattice.html" title="org.apache.calcite.model中的类">JsonLattice</a></td>
<td class="colLast">
<div class="block">Element that describes a star schema and provides a framework for defining,
recognizing, and recommending materialized views at various levels of
aggregation.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><a href="../../../../org/apache/calcite/model/JsonMapSchema.html" title="org.apache.calcite.model中的类">JsonMapSchema</a></td>
<td class="colLast">
<div class="block">JSON object representing a schema whose tables are explicitly specified.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><a href="../../../../org/apache/calcite/model/JsonMaterialization.html" title="org.apache.calcite.model中的类">JsonMaterialization</a></td>
<td class="colLast">
<div class="block">Element that describes how a table is a materialization of a query.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><a href="../../../../org/apache/calcite/model/JsonMeasure.html" title="org.apache.calcite.model中的类">JsonMeasure</a></td>
<td class="colLast">
<div class="block">An aggregate function applied to a column (or columns) of a lattice.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><a href="../../../../org/apache/calcite/model/JsonRoot.html" title="org.apache.calcite.model中的类">JsonRoot</a></td>
<td class="colLast">
<div class="block">Root schema element.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><a href="../../../../org/apache/calcite/model/JsonSchema.html" title="org.apache.calcite.model中的类">JsonSchema</a></td>
<td class="colLast">
<div class="block">Schema schema element.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><a href="../../../../org/apache/calcite/model/JsonStream.html" title="org.apache.calcite.model中的类">JsonStream</a></td>
<td class="colLast">
<div class="block">Information about whether a table allows streaming.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><a href="../../../../org/apache/calcite/model/JsonTable.html" title="org.apache.calcite.model中的类">JsonTable</a></td>
<td class="colLast">
<div class="block">Table schema element.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><a href="../../../../org/apache/calcite/model/JsonTile.html" title="org.apache.calcite.model中的类">JsonTile</a></td>
<td class="colLast">
<div class="block">Materialized view within a <a href="../../../../org/apache/calcite/model/JsonLattice.html" title="org.apache.calcite.model中的类"><code>JsonLattice</code></a>.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><a href="../../../../org/apache/calcite/model/JsonType.html" title="org.apache.calcite.model中的类">JsonType</a></td>
<td class="colLast">
<div class="block">Type schema element.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><a href="../../../../org/apache/calcite/model/JsonTypeAttribute.html" title="org.apache.calcite.model中的类">JsonTypeAttribute</a></td>
<td class="colLast">
<div class="block">JSON object representing a type attribute.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><a href="../../../../org/apache/calcite/model/JsonView.html" title="org.apache.calcite.model中的类">JsonView</a></td>
<td class="colLast">
<div class="block">View schema element.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><a href="../../../../org/apache/calcite/model/ModelHandler.html" title="org.apache.calcite.model中的类">ModelHandler</a></td>
<td class="colLast">
<div class="block">Reads a model and creates schema objects accordingly.</div>
</td>
</tr>
</tbody>
</table>
</li>
<li class="blockList">
<table class="typeSummary" border="0" cellpadding="3" cellspacing="0" summary="枚举概要表, 列表枚举和解释">
<caption><span>枚举概要</span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colFirst" scope="col">枚举</th>
<th class="colLast" scope="col">说明</th>
</tr>
<tbody>
<tr class="altColor">
<td class="colFirst"><a href="../../../../org/apache/calcite/model/JsonSchema.Type.html" title="org.apache.calcite.model中的枚举">JsonSchema.Type</a></td>
<td class="colLast">
<div class="block">Built-in schema types.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><a href="../../../../org/apache/calcite/model/ModelHandler.ExtraOperand.html" title="org.apache.calcite.model中的枚举">ModelHandler.ExtraOperand</a></td>
<td class="colLast">
<div class="block">Extra operands automatically injected into a
<a href="../../../../org/apache/calcite/model/JsonCustomSchema.html#operand"><code>JsonCustomSchema.operand</code></a>, as extra context for the adapter.</div>
</td>
</tr>
</tbody>
</table>
</li>
</ul>
<a name="package.description">
<!-- -->
</a>
<h2 title="程序包org.apache.calcite.model的说明">程序包org.apache.calcite.model的说明</h2>
<div class="block">Provides model files, in JSON format, defining schemas and other metadata.
<p>Models are specified using a <code>model=&lt;uri&gt;</code> parameter on
the JDBC connect string. Calcite loads the model while initializing the
connection. It first parses the JSON, then uses a
<a href="../../../../org/apache/calcite/model/ModelHandler.html" title="org.apache.calcite.model中的类"><code>ModelHandler</code></a> as visitor over the parse
tree.</p>
<p>There are standard implementations of schema and table, but the user can
provide their own by implementing the
<a href="../../../../org/apache/calcite/schema/SchemaFactory.html" title="org.apache.calcite.schema中的接口"><code>SchemaFactory</code></a>
or <a href="../../../../org/apache/calcite/schema/TableFactory.html" title="org.apache.calcite.schema中的接口"><code>TableFactory</code></a>
interfaces and including a custom schema in the model.</p>
<p>There are several examples of schemas in the
<a href="https://calcite.apache.org/docs/tutorial.html">tutorial</a>.</div>
</div>
<!-- ======= START OF BOTTOM NAVBAR ====== -->
<div class="bottomNav"><a name="navbar.bottom">
<!-- -->
</a>
<div class="skipNav"><a href="#skip.navbar.bottom" title="跳过导航链接">跳过导航链接</a></div>
<a name="navbar.bottom.firstrow">
<!-- -->
</a>
<ul class="navList" title="导航">
<li><a href="../../../../overview-summary.html">概览</a></li>
<li class="navBarCell1Rev">程序包</li>
<li></li>
<li><a href="package-tree.html"></a></li>
<li><a href="../../../../deprecated-list.html">已过时</a></li>
<li><a href="../../../../index-all.html">索引</a></li>
<li><a href="../../../../help-doc.html">帮助</a></li>
</ul>
<div class="aboutLanguage"><b>Apache Calcite</b></div>
</div>
<div class="subNav">
<ul class="navList">
<li><a href="../../../../org/apache/calcite/materialize/package-summary.html">上一个程序包</a></li>
<li><a href="../../../../org/apache/calcite/piglet/package-summary.html">下一个程序包</a></li>
</ul>
<ul class="navList">
<li><a href="../../../../index.html?org/apache/calcite/model/package-summary.html" target="_top">框架</a></li>
<li><a href="package-summary.html" target="_top">无框架</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_bottom">
<li><a href="../../../../allclasses-noframe.html">所有类</a></li>
</ul>
<div>
<script type="text/javascript"><!--
allClassesLink = document.getElementById("allclasses_navbar_bottom");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
//-->
</script>
</div>
<a name="skip.navbar.bottom">
<!-- -->
</a></div>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
<p class="legalCopy"><small>Copyright &copy; 2012-2020 Apache Software Foundation. All Rights Reserved.</small></p>
</body>
</html>