blob: e3fd343d2387580092ebcee56dbd887dde33961a [file] [log] [blame]
<!DOCTYPE HTML>
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc -->
<title>org.apache.calcite.sql.test (Calcite 1.20.0 Test API)</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="Style">
<link rel="stylesheet" type="text/css" href="../../../../../jquery/jquery-ui.css" title="Style">
<script type="text/javascript" src="../../../../../script.js"></script>
<script type="text/javascript" src="../../../../../jquery/jszip/dist/jszip.min.js"></script>
<script type="text/javascript" src="../../../../../jquery/jszip-utils/dist/jszip-utils.min.js"></script>
<!--[if IE]>
<script type="text/javascript" src="../../../../../jquery/jszip-utils/dist/jszip-utils-ie.min.js"></script>
<![endif]-->
<script type="text/javascript" src="../../../../../jquery/jquery-3.3.1.js"></script>
<script type="text/javascript" src="../../../../../jquery/jquery-migrate-3.0.1.js"></script>
<script type="text/javascript" src="../../../../../jquery/jquery-ui.js"></script>
</head>
<body>
<script type="text/javascript"><!--
try {
if (location.href.indexOf('is-external=true') == -1) {
parent.document.title="org.apache.calcite.sql.test (Calcite 1.20.0 Test API)";
}
}
catch(err) {
}
//-->
var pathtoroot = "../../../../../";
var useModuleDirectories = true;
loadScripts(document, 'script');</script>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
<header role="banner">
<nav role="navigation">
<div class="fixedNav">
<!-- ========= START OF TOP NAVBAR ======= -->
<div class="topNav"><a id="navbar.top">
<!-- -->
</a>
<div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div>
<a id="navbar.top.firstrow">
<!-- -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../../index.html">Overview</a></li>
<li class="navBarCell1Rev">Package</li>
<li>Class</li>
<li><a href="package-use.html">Use</a></li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../../../index-all.html">Index</a></li>
<li><a href="../../../../../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList" id="allclasses_navbar_top">
<li><a href="../../../../../allclasses.html">All&nbsp;Classes</a></li>
</ul>
<ul class="navListSearch">
<li><label for="search">SEARCH:</label>
<input type="text" id="search" value="search" disabled="disabled">
<input type="reset" id="reset" value="reset" disabled="disabled">
</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>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
</div>
<a id="skip.navbar.top">
<!-- -->
</a></div>
<!-- ========= END OF TOP NAVBAR ========= -->
</div>
<div class="navPadding">&nbsp;</div>
<script type="text/javascript"><!--
$('.navPadding').css('padding-top', $('.fixedNav').css("height"));
//-->
</script>
</nav>
</header>
<main role="main">
<div class="header">
<h1 title="Package" class="title">Package&nbsp;org.apache.calcite.sql.test</h1>
</div>
<div class="contentContainer">
<section role="region"><a id="package.description">
<!-- -->
</a>
<div class="block">Regression tests for the SQL model.</div>
</section>
<ul class="blockList">
<li class="blockList">
<table class="typeSummary">
<caption><span>Interface Summary</span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colFirst" scope="col">Interface</th>
<th class="colLast" scope="col">Description</th>
</tr>
<tbody>
<tr class="altColor">
<th class="colFirst" scope="row"><a href="SqlTester.html" title="interface in org.apache.calcite.sql.test">SqlTester</a></th>
<td class="colLast">
<div class="block">SqlTester defines a callback for testing SQL queries and expressions.</div>
</td>
</tr>
<tr class="rowColor">
<th class="colFirst" scope="row"><a href="SqlTester.ParameterChecker.html" title="interface in org.apache.calcite.sql.test">SqlTester.ParameterChecker</a></th>
<td class="colLast">
<div class="block">Parameter checker.</div>
</td>
</tr>
<tr class="altColor">
<th class="colFirst" scope="row"><a href="SqlTester.ResultChecker.html" title="interface in org.apache.calcite.sql.test">SqlTester.ResultChecker</a></th>
<td class="colLast">
<div class="block">Result checker.</div>
</td>
</tr>
<tr class="rowColor">
<th class="colFirst" scope="row"><a href="SqlTester.TypeChecker.html" title="interface in org.apache.calcite.sql.test">SqlTester.TypeChecker</a></th>
<td class="colLast">
<div class="block">Type checker.</div>
</td>
</tr>
<tr class="altColor">
<th class="colFirst" scope="row"><a href="SqlTestFactory.MockCatalogReaderFactory.html" title="interface in org.apache.calcite.sql.test">SqlTestFactory.MockCatalogReaderFactory</a></th>
<td class="colLast">
<div class="block">Creates <a href="../../test/catalog/MockCatalogReader.html" title="class in org.apache.calcite.test.catalog"><code>MockCatalogReader</code></a> for tests.</div>
</td>
</tr>
<tr class="rowColor">
<th class="colFirst" scope="row"><a href="SqlTestFactory.ValidatorFactory.html" title="interface in org.apache.calcite.sql.test">SqlTestFactory.ValidatorFactory</a></th>
<td class="colLast">
<div class="block">Creates <code>SqlValidator</code> for tests.</div>
</td>
</tr>
</tbody>
</table>
</li>
<li class="blockList">
<table class="typeSummary">
<caption><span>Class Summary</span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colFirst" scope="col">Class</th>
<th class="colLast" scope="col">Description</th>
</tr>
<tbody>
<tr class="altColor">
<th class="colFirst" scope="row"><a href="AbstractSqlTester.html" title="class in org.apache.calcite.sql.test">AbstractSqlTester</a></th>
<td class="colLast">
<div class="block">Abstract implementation of
<a href="../../test/SqlValidatorTestCase.Tester.html" title="interface in org.apache.calcite.test"><code>SqlValidatorTestCase.Tester</code></a>
that talks to a mock catalog.</div>
</td>
</tr>
<tr class="rowColor">
<th class="colFirst" scope="row"><a href="DocumentationTest.html" title="class in org.apache.calcite.sql.test">DocumentationTest</a></th>
<td class="colLast">
<div class="block">Various automated checks on the documentation.</div>
</td>
</tr>
<tr class="altColor">
<th class="colFirst" scope="row"><a href="DocumentationTest.FileFixture.html" title="class in org.apache.calcite.sql.test">DocumentationTest.FileFixture</a></th>
<td class="colLast">
<div class="block">Defines paths needed by a couple of tests.</div>
</td>
</tr>
<tr class="rowColor">
<th class="colFirst" scope="row"><a href="DocumentationTest.PatternOp.html" title="class in org.apache.calcite.sql.test">DocumentationTest.PatternOp</a></th>
<td class="colLast">
<div class="block">A compiled regex and an operator name.</div>
</td>
</tr>
<tr class="altColor">
<th class="colFirst" scope="row"><a href="SqlAdvisorTest.html" title="class in org.apache.calcite.sql.test">SqlAdvisorTest</a></th>
<td class="colLast">
<div class="block">Concrete child class of <a href="../../test/SqlValidatorTestCase.html" title="class in org.apache.calcite.test"><code>SqlValidatorTestCase</code></a>, containing unit tests
for SqlAdvisor.</div>
</td>
</tr>
<tr class="rowColor">
<th class="colFirst" scope="row"><a href="SqlOperatorBaseTest.html" title="class in org.apache.calcite.sql.test">SqlOperatorBaseTest</a></th>
<td class="colLast">
<div class="block">Contains unit tests for all operators.</div>
</td>
</tr>
<tr class="altColor">
<th class="colFirst" scope="row"><a href="SqlOperatorBaseTest.Builder.html" title="class in org.apache.calcite.sql.test">SqlOperatorBaseTest.Builder</a></th>
<td class="colLast">
<div class="block">Builds lists of types and sample values.</div>
</td>
</tr>
<tr class="rowColor">
<th class="colFirst" scope="row"><a href="SqlOperatorBaseTest.ExceptionResultChecker.html" title="class in org.apache.calcite.sql.test">SqlOperatorBaseTest.ExceptionResultChecker</a></th>
<td class="colLast">
<div class="block">Result checker that considers a test to have succeeded if it throws an
exception that matches one of a list of patterns.</div>
</td>
</tr>
<tr class="altColor">
<th class="colFirst" scope="row"><a href="SqlOperatorBaseTest.TesterImpl.html" title="class in org.apache.calcite.sql.test">SqlOperatorBaseTest.TesterImpl</a></th>
<td class="colLast">
<div class="block">Implementation of <a href="SqlTester.html" title="interface in org.apache.calcite.sql.test"><code>SqlTester</code></a> based on a
JDBC connection.</div>
</td>
</tr>
<tr class="rowColor">
<th class="colFirst" scope="row"><a href="SqlOperatorBaseTest.ValueOrExceptionResultChecker.html" title="class in org.apache.calcite.sql.test">SqlOperatorBaseTest.ValueOrExceptionResultChecker</a></th>
<td class="colLast">
<div class="block">Result checker that considers a test to have succeeded if it returns a
particular value or throws an exception that matches one of a list of
patterns.</div>
</td>
</tr>
<tr class="altColor">
<th class="colFirst" scope="row"><a href="SqlOperatorBaseTest.ValueType.html" title="class in org.apache.calcite.sql.test">SqlOperatorBaseTest.ValueType</a></th>
<td class="colLast">
<div class="block">A type, a value, and its <code>SqlNode</code> representation.</div>
</td>
</tr>
<tr class="rowColor">
<th class="colFirst" scope="row"><a href="SqlOperatorTest.html" title="class in org.apache.calcite.sql.test">SqlOperatorTest</a></th>
<td class="colLast">
<div class="block">Concrete subclass of <a href="SqlOperatorBaseTest.html" title="class in org.apache.calcite.sql.test"><code>SqlOperatorBaseTest</code></a> which checks against
a <code>SqlValidator</code>.</div>
</td>
</tr>
<tr class="altColor">
<th class="colFirst" scope="row"><a href="SqlPrettyWriterTest.html" title="class in org.apache.calcite.sql.test">SqlPrettyWriterTest</a></th>
<td class="colLast">
<div class="block">Unit test for <code>SqlPrettyWriter</code>.</div>
</td>
</tr>
<tr class="rowColor">
<th class="colFirst" scope="row"><a href="SqlRuntimeTester.html" title="class in org.apache.calcite.sql.test">SqlRuntimeTester</a></th>
<td class="colLast">
<div class="block">Tester of <code>SqlValidator</code> and runtime execution of the input SQL.</div>
</td>
</tr>
<tr class="altColor">
<th class="colFirst" scope="row"><a href="SqlTestFactory.html" title="class in org.apache.calcite.sql.test">SqlTestFactory</a></th>
<td class="colLast">
<div class="block">Default implementation of <a href="SqlTestFactory.html" title="class in org.apache.calcite.sql.test"><code>SqlTestFactory</code></a>.</div>
</td>
</tr>
<tr class="rowColor">
<th class="colFirst" scope="row"><a href="SqlTests.html" title="class in org.apache.calcite.sql.test">SqlTests</a></th>
<td class="colLast">
<div class="block">Utility methods.</div>
</td>
</tr>
<tr class="altColor">
<th class="colFirst" scope="row"><a href="SqlTests.ApproximateResultChecker.html" title="class in org.apache.calcite.sql.test">SqlTests.ApproximateResultChecker</a></th>
<td class="colLast">
<div class="block">Result checker that checks a result against an expected value.</div>
</td>
</tr>
<tr class="rowColor">
<th class="colFirst" scope="row"><a href="SqlTests.PatternResultChecker.html" title="class in org.apache.calcite.sql.test">SqlTests.PatternResultChecker</a></th>
<td class="colLast">
<div class="block">Result checker that checks a result against a regular expression.</div>
</td>
</tr>
<tr class="altColor">
<th class="colFirst" scope="row"><a href="SqlTests.RefSetResultChecker.html" title="class in org.apache.calcite.sql.test">SqlTests.RefSetResultChecker</a></th>
<td class="colLast">
<div class="block">Result checker that checks a result against a list of expected strings.</div>
</td>
</tr>
<tr class="rowColor">
<th class="colFirst" scope="row"><a href="SqlTests.SqlTypeChecker.html" title="class in org.apache.calcite.sql.test">SqlTests.SqlTypeChecker</a></th>
<td class="colLast">
<div class="block">Checks that a type matches a given SQL type.</div>
</td>
</tr>
<tr class="altColor">
<th class="colFirst" scope="row"><a href="SqlTests.StringTypeChecker.html" title="class in org.apache.calcite.sql.test">SqlTests.StringTypeChecker</a></th>
<td class="colLast">
<div class="block">Type checker which compares types to a specified string.</div>
</td>
</tr>
<tr class="rowColor">
<th class="colFirst" scope="row"><a href="SqlTypeNameTest.html" title="class in org.apache.calcite.sql.test">SqlTypeNameTest</a></th>
<td class="colLast">
<div class="block">Tests types supported by <code>SqlTypeName</code>.</div>
</td>
</tr>
<tr class="altColor">
<th class="colFirst" scope="row"><a href="SqlValidatorTester.html" title="class in org.apache.calcite.sql.test">SqlValidatorTester</a></th>
<td class="colLast">
<div class="block">Tester of <code>SqlValidator</code>.</div>
</td>
</tr>
</tbody>
</table>
</li>
<li class="blockList">
<table class="typeSummary">
<caption><span>Enum Summary</span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colFirst" scope="col">Enum</th>
<th class="colLast" scope="col">Description</th>
</tr>
<tbody>
<tr class="altColor">
<th class="colFirst" scope="row"><a href="SqlTester.VmName.html" title="enum in org.apache.calcite.sql.test">SqlTester.VmName</a></th>
<td class="colLast">
<div class="block">Name of a virtual machine that can potentially implement an operator.</div>
</td>
</tr>
<tr class="rowColor">
<th class="colFirst" scope="row"><a href="SqlTests.Stage.html" title="enum in org.apache.calcite.sql.test">SqlTests.Stage</a></th>
<td class="colLast">
<div class="block">Stage of query processing</div>
</td>
</tr>
</tbody>
</table>
</li>
</ul>
</div>
</main>
<footer role="contentinfo">
<nav role="navigation">
<!-- ======= START OF BOTTOM NAVBAR ====== -->
<div class="bottomNav"><a id="navbar.bottom">
<!-- -->
</a>
<div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div>
<a id="navbar.bottom.firstrow">
<!-- -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../../index.html">Overview</a></li>
<li class="navBarCell1Rev">Package</li>
<li>Class</li>
<li><a href="package-use.html">Use</a></li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../../../index-all.html">Index</a></li>
<li><a href="../../../../../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList" id="allclasses_navbar_bottom">
<li><a href="../../../../../allclasses.html">All&nbsp;Classes</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>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
</div>
<a id="skip.navbar.bottom">
<!-- -->
</a></div>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
</nav>
<p class="legalCopy"><small>Copyright &#169; 2012&#x2013;2019 <a href="https://www.apache.org/">The Apache Software Foundation</a>. All rights reserved.</small></p>
</footer>
</body>
</html>