blob: d69b5ff34e3fb0268eef6901290801a925b69fc0 [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>QueryProvider (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="QueryProvider (Apache Calcite calcite API)";
}
}
catch(err) {
}
//-->
var methods = {"i0":6,"i1":6,"i2":6,"i3":6,"i4":6};
var tabs = {65535:["t0","所有方法"],2:["t2","实例方法"],4:["t3","抽象方法"]};
var altColor = "altColor";
var rowColor = "rowColor";
var tableTab = "tableTab";
var activeTableTab = "activeTableTab";
</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><a href="package-summary.html">程序包</a></li>
<li class="navBarCell1Rev"></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/linq4j/QueryableRecorder.html" title="org.apache.calcite.linq4j中的类"><span class="typeNameLink">上一个类</span></a></li>
<li><a href="../../../../org/apache/calcite/linq4j/QueryProviderImpl.html" title="org.apache.calcite.linq4j中的类"><span class="typeNameLink">下一个类</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../../index.html?org/apache/calcite/linq4j/QueryProvider.html" target="_top">框架</a></li>
<li><a href="QueryProvider.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>
<div>
<ul class="subNavList">
<li>概要:&nbsp;</li>
<li>嵌套&nbsp;|&nbsp;</li>
<li>字段&nbsp;|&nbsp;</li>
<li>构造器&nbsp;|&nbsp;</li>
<li><a href="#method.summary">方法</a></li>
</ul>
<ul class="subNavList">
<li>详细资料:&nbsp;</li>
<li>字段&nbsp;|&nbsp;</li>
<li>构造器&nbsp;|&nbsp;</li>
<li><a href="#method.detail">方法</a></li>
</ul>
</div>
<a name="skip.navbar.top">
<!-- -->
</a></div>
<!-- ========= END OF TOP NAVBAR ========= -->
<!-- ======== START OF CLASS DATA ======== -->
<div class="header">
<div class="subTitle">org.apache.calcite.linq4j</div>
<h2 title="接口 QueryProvider" class="title">接口 QueryProvider</h2>
</div>
<div class="contentContainer">
<div class="description">
<ul class="blockList">
<li class="blockList">
<dl>
<dt>所有已知子接口:</dt>
<dd><a href="../../../../org/apache/calcite/jdbc/CalciteConnection.html" title="org.apache.calcite.jdbc中的接口">CalciteConnection</a></dd>
</dl>
<dl>
<dt>所有已知实现类:</dt>
<dd><a href="../../../../org/apache/calcite/adapter/jdbc/JdbcQueryProvider.html" title="org.apache.calcite.adapter.jdbc中的类">JdbcQueryProvider</a>, <a href="../../../../org/apache/calcite/linq4j/QueryProviderImpl.html" title="org.apache.calcite.linq4j中的类">QueryProviderImpl</a></dd>
</dl>
<hr>
<br>
<pre>public interface <span class="typeNameLabel">QueryProvider</span></pre>
<div class="block">Defines methods to create and execute queries that are described by a
<a href="../../../../org/apache/calcite/linq4j/Queryable.html" title="org.apache.calcite.linq4j中的接口"><code>Queryable</code></a> object.
<p>Analogous to LINQ's System.Linq.QueryProvider.</p></div>
</li>
</ul>
</div>
<div class="summary">
<ul class="blockList">
<li class="blockList">
<!-- ========== METHOD SUMMARY =========== -->
<ul class="blockList">
<li class="blockList"><a name="method.summary">
<!-- -->
</a>
<h3>方法概要</h3>
<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="方法概要表, 列表方法和解释">
<caption><span id="t0" class="activeTableTab"><span>所有方法</span><span class="tabEnd">&nbsp;</span></span><span id="t2" class="tableTab"><span><a href="javascript:show(2);">实例方法</a></span><span class="tabEnd">&nbsp;</span></span><span id="t3" class="tableTab"><span><a href="javascript:show(4);">抽象方法</a></span><span class="tabEnd">&nbsp;</span></span></caption>
<tr>
<th class="colFirst" scope="col">限定符和类型</th>
<th class="colLast" scope="col">方法和说明</th>
</tr>
<tr id="i0" class="altColor">
<td class="colFirst"><code>&lt;T&gt;&nbsp;<a href="../../../../org/apache/calcite/linq4j/Queryable.html" title="org.apache.calcite.linq4j中的接口">Queryable</a>&lt;T&gt;</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/calcite/linq4j/QueryProvider.html#createQuery-org.apache.calcite.linq4j.tree.Expression-java.lang.Class-">createQuery</a></span>(<a href="../../../../org/apache/calcite/linq4j/tree/Expression.html" title="org.apache.calcite.linq4j.tree中的类">Expression</a>&nbsp;expression,
<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Class.html?is-external=true" title="java.lang中的类或接口">Class</a>&lt;T&gt;&nbsp;rowType)</code>
<div class="block">Constructs a <a href="../../../../org/apache/calcite/linq4j/Queryable.html" title="org.apache.calcite.linq4j中的接口"><code>Queryable</code></a> object that can evaluate the query
represented by a specified expression tree.</div>
</td>
</tr>
<tr id="i1" class="rowColor">
<td class="colFirst"><code>&lt;T&gt;&nbsp;<a href="../../../../org/apache/calcite/linq4j/Queryable.html" title="org.apache.calcite.linq4j中的接口">Queryable</a>&lt;T&gt;</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/calcite/linq4j/QueryProvider.html#createQuery-org.apache.calcite.linq4j.tree.Expression-java.lang.reflect.Type-">createQuery</a></span>(<a href="../../../../org/apache/calcite/linq4j/tree/Expression.html" title="org.apache.calcite.linq4j.tree中的类">Expression</a>&nbsp;expression,
<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/reflect/Type.html?is-external=true" title="java.lang.reflect中的类或接口">Type</a>&nbsp;rowType)</code>
<div class="block">Constructs a <a href="../../../../org/apache/calcite/linq4j/Queryable.html" title="org.apache.calcite.linq4j中的接口"><code>Queryable</code></a> object that can evaluate the query
represented by a specified expression tree.</div>
</td>
</tr>
<tr id="i2" class="altColor">
<td class="colFirst"><code>&lt;T&gt;&nbsp;T</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/calcite/linq4j/QueryProvider.html#execute-org.apache.calcite.linq4j.tree.Expression-java.lang.Class-">execute</a></span>(<a href="../../../../org/apache/calcite/linq4j/tree/Expression.html" title="org.apache.calcite.linq4j.tree中的类">Expression</a>&nbsp;expression,
<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Class.html?is-external=true" title="java.lang中的类或接口">Class</a>&lt;T&gt;&nbsp;type)</code>
<div class="block">Executes the query represented by a specified expression tree.</div>
</td>
</tr>
<tr id="i3" class="rowColor">
<td class="colFirst"><code>&lt;T&gt;&nbsp;T</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/calcite/linq4j/QueryProvider.html#execute-org.apache.calcite.linq4j.tree.Expression-java.lang.reflect.Type-">execute</a></span>(<a href="../../../../org/apache/calcite/linq4j/tree/Expression.html" title="org.apache.calcite.linq4j.tree中的类">Expression</a>&nbsp;expression,
<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/reflect/Type.html?is-external=true" title="java.lang.reflect中的类或接口">Type</a>&nbsp;type)</code>
<div class="block">Executes the query represented by a specified expression tree.</div>
</td>
</tr>
<tr id="i4" class="altColor">
<td class="colFirst"><code>&lt;T&gt;&nbsp;<a href="../../../../org/apache/calcite/linq4j/Enumerator.html" title="org.apache.calcite.linq4j中的接口">Enumerator</a>&lt;T&gt;</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/calcite/linq4j/QueryProvider.html#executeQuery-org.apache.calcite.linq4j.Queryable-">executeQuery</a></span>(<a href="../../../../org/apache/calcite/linq4j/Queryable.html" title="org.apache.calcite.linq4j中的接口">Queryable</a>&lt;T&gt;&nbsp;queryable)</code>
<div class="block">Executes a queryable, and returns an enumerator over the
rows that it yields.</div>
</td>
</tr>
</table>
</li>
</ul>
</li>
</ul>
</div>
<div class="details">
<ul class="blockList">
<li class="blockList">
<!-- ============ METHOD DETAIL ========== -->
<ul class="blockList">
<li class="blockList"><a name="method.detail">
<!-- -->
</a>
<h3>方法详细资料</h3>
<a name="createQuery-org.apache.calcite.linq4j.tree.Expression-java.lang.Class-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>createQuery</h4>
<pre>&lt;T&gt;&nbsp;<a href="../../../../org/apache/calcite/linq4j/Queryable.html" title="org.apache.calcite.linq4j中的接口">Queryable</a>&lt;T&gt;&nbsp;createQuery(<a href="../../../../org/apache/calcite/linq4j/tree/Expression.html" title="org.apache.calcite.linq4j.tree中的类">Expression</a>&nbsp;expression,
<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Class.html?is-external=true" title="java.lang中的类或接口">Class</a>&lt;T&gt;&nbsp;rowType)</pre>
<div class="block">Constructs a <a href="../../../../org/apache/calcite/linq4j/Queryable.html" title="org.apache.calcite.linq4j中的接口"><code>Queryable</code></a> object that can evaluate the query
represented by a specified expression tree.
<p>NOTE: The <a href="../../../../org/apache/calcite/linq4j/RawQueryable.html#getExpression--"><code>RawQueryable.getExpression()</code></a>
property of the returned <a href="../../../../org/apache/calcite/linq4j/Queryable.html" title="org.apache.calcite.linq4j中的接口"><code>Queryable</code></a> object is equal to
<code>expression</code>.</p></div>
<dl>
<dt><span class="paramLabel">类型参数:</span></dt>
<dd><code>T</code> - Row type</dd>
<dt><span class="paramLabel">参数:</span></dt>
<dd><code>expression</code> - Expression</dd>
<dd><code>rowType</code> - Row type</dd>
<dt><span class="returnLabel">返回:</span></dt>
<dd>Queryable</dd>
</dl>
</li>
</ul>
<a name="createQuery-org.apache.calcite.linq4j.tree.Expression-java.lang.reflect.Type-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>createQuery</h4>
<pre>&lt;T&gt;&nbsp;<a href="../../../../org/apache/calcite/linq4j/Queryable.html" title="org.apache.calcite.linq4j中的接口">Queryable</a>&lt;T&gt;&nbsp;createQuery(<a href="../../../../org/apache/calcite/linq4j/tree/Expression.html" title="org.apache.calcite.linq4j.tree中的类">Expression</a>&nbsp;expression,
<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/reflect/Type.html?is-external=true" title="java.lang.reflect中的类或接口">Type</a>&nbsp;rowType)</pre>
<div class="block">Constructs a <a href="../../../../org/apache/calcite/linq4j/Queryable.html" title="org.apache.calcite.linq4j中的接口"><code>Queryable</code></a> object that can evaluate the query
represented by a specified expression tree. The row type may contain
generic information.</div>
<dl>
<dt><span class="paramLabel">类型参数:</span></dt>
<dd><code>T</code> - Row type</dd>
<dt><span class="paramLabel">参数:</span></dt>
<dd><code>expression</code> - Expression</dd>
<dd><code>rowType</code> - Row type</dd>
<dt><span class="returnLabel">返回:</span></dt>
<dd>Queryable</dd>
</dl>
</li>
</ul>
<a name="execute-org.apache.calcite.linq4j.tree.Expression-java.lang.Class-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>execute</h4>
<pre>&lt;T&gt;&nbsp;T&nbsp;execute(<a href="../../../../org/apache/calcite/linq4j/tree/Expression.html" title="org.apache.calcite.linq4j.tree中的类">Expression</a>&nbsp;expression,
<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Class.html?is-external=true" title="java.lang中的类或接口">Class</a>&lt;T&gt;&nbsp;type)</pre>
<div class="block">Executes the query represented by a specified expression tree.
<p>This method executes queries that return a single value
(instead of an enumerable sequence of values). Expression trees that
represent queries that return enumerable results are executed when the
<a href="../../../../org/apache/calcite/linq4j/Queryable.html" title="org.apache.calcite.linq4j中的接口"><code>Queryable</code></a> object that contains the expression tree is
enumerated.</p>
<p>The Queryable standard query operator methods that return singleton
results call <code>execute</code>. They pass it a
<a href="../../../../org/apache/calcite/linq4j/tree/MethodCallExpression.html" title="org.apache.calcite.linq4j.tree中的类"><code>MethodCallExpression</code></a>
that represents a linq4j query.</div>
</li>
</ul>
<a name="execute-org.apache.calcite.linq4j.tree.Expression-java.lang.reflect.Type-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>execute</h4>
<pre>&lt;T&gt;&nbsp;T&nbsp;execute(<a href="../../../../org/apache/calcite/linq4j/tree/Expression.html" title="org.apache.calcite.linq4j.tree中的类">Expression</a>&nbsp;expression,
<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/reflect/Type.html?is-external=true" title="java.lang.reflect中的类或接口">Type</a>&nbsp;type)</pre>
<div class="block">Executes the query represented by a specified expression tree.
The row type may contain type parameters.</div>
</li>
</ul>
<a name="executeQuery-org.apache.calcite.linq4j.Queryable-">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>executeQuery</h4>
<pre>&lt;T&gt;&nbsp;<a href="../../../../org/apache/calcite/linq4j/Enumerator.html" title="org.apache.calcite.linq4j中的接口">Enumerator</a>&lt;T&gt;&nbsp;executeQuery(<a href="../../../../org/apache/calcite/linq4j/Queryable.html" title="org.apache.calcite.linq4j中的接口">Queryable</a>&lt;T&gt;&nbsp;queryable)</pre>
<div class="block">Executes a queryable, and returns an enumerator over the
rows that it yields.</div>
<dl>
<dt><span class="paramLabel">参数:</span></dt>
<dd><code>queryable</code> - Queryable</dd>
<dt><span class="returnLabel">返回:</span></dt>
<dd>Enumerator over rows</dd>
</dl>
</li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
</div>
<!-- ========= END OF CLASS DATA ========= -->
<!-- ======= 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><a href="package-summary.html">程序包</a></li>
<li class="navBarCell1Rev"></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/linq4j/QueryableRecorder.html" title="org.apache.calcite.linq4j中的类"><span class="typeNameLink">上一个类</span></a></li>
<li><a href="../../../../org/apache/calcite/linq4j/QueryProviderImpl.html" title="org.apache.calcite.linq4j中的类"><span class="typeNameLink">下一个类</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../../index.html?org/apache/calcite/linq4j/QueryProvider.html" target="_top">框架</a></li>
<li><a href="QueryProvider.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>
<div>
<ul class="subNavList">
<li>概要:&nbsp;</li>
<li>嵌套&nbsp;|&nbsp;</li>
<li>字段&nbsp;|&nbsp;</li>
<li>构造器&nbsp;|&nbsp;</li>
<li><a href="#method.summary">方法</a></li>
</ul>
<ul class="subNavList">
<li>详细资料:&nbsp;</li>
<li>字段&nbsp;|&nbsp;</li>
<li>构造器&nbsp;|&nbsp;</li>
<li><a href="#method.detail">方法</a></li>
</ul>
</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>