blob: d1b74ff1160e35f58f52269c808c7a7fb82e3074 [file] [log] [blame]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc -->
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>ClusterFixture (Drill : 1.20.0 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="ClusterFixture (Drill : 1.20.0 API)";
}
}
catch(err) {
}
//-->
var methods = {"i0":10,"i1":9,"i2":9,"i3":10,"i4":10,"i5":10,"i6":10,"i7":10,"i8":10,"i9":10,"i10":10,"i11":10,"i12":10,"i13":10,"i14":10,"i15":10,"i16":10,"i17":10,"i18":10,"i19":10,"i20":10,"i21":10,"i22":10,"i23":9,"i24":10,"i25":9,"i26":10,"i27":10,"i28":10,"i29":10,"i30":9,"i31":10,"i32":10,"i33":9,"i34":9,"i35":10};
var tabs = {65535:["t0","All Methods"],1:["t1","Static Methods"],2:["t2","Instance Methods"],8:["t4","Concrete Methods"]};
var altColor = "altColor";
var rowColor = "rowColor";
var tableTab = "tableTab";
var activeTableTab = "activeTableTab";
</script>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
<!-- ========= START OF TOP NAVBAR ======= -->
<div class="topNav"><a name="navbar.top">
<!-- -->
</a>
<div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div>
<a name="navbar.top.firstrow">
<!-- -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../overview-summary.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="class-use/ClusterFixture.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">
<li><a href="../../../../org/apache/drill/test/ClientFixture.StatementParser.html" title="class in org.apache.drill.test"><span class="typeNameLink">Prev&nbsp;Class</span></a></li>
<li><a href="../../../../org/apache/drill/test/ClusterFixture.FixtureTestServices.html" title="class in org.apache.drill.test"><span class="typeNameLink">Next&nbsp;Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../../index.html?org/apache/drill/test/ClusterFixture.html" target="_top">Frames</a></li>
<li><a href="ClusterFixture.html" target="_top">No&nbsp;Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_top">
<li><a href="../../../../allclasses-noframe.html">All&nbsp;Classes</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>Summary:&nbsp;</li>
<li><a href="#nested.class.summary">Nested</a>&nbsp;|&nbsp;</li>
<li><a href="#field.summary">Field</a>&nbsp;|&nbsp;</li>
<li>Constr&nbsp;|&nbsp;</li>
<li><a href="#method.summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail:&nbsp;</li>
<li><a href="#field.detail">Field</a>&nbsp;|&nbsp;</li>
<li>Constr&nbsp;|&nbsp;</li>
<li><a href="#method.detail">Method</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.drill.test</div>
<h2 title="Class ClusterFixture" class="title">Class ClusterFixture</h2>
</div>
<div class="contentContainer">
<ul class="inheritance">
<li><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">java.lang.Object</a></li>
<li>
<ul class="inheritance">
<li><a href="../../../../org/apache/drill/test/BaseFixture.html" title="class in org.apache.drill.test">org.apache.drill.test.BaseFixture</a></li>
<li>
<ul class="inheritance">
<li>org.apache.drill.test.ClusterFixture</li>
</ul>
</li>
</ul>
</li>
</ul>
<div class="description">
<ul class="blockList">
<li class="blockList">
<dl>
<dt>All Implemented Interfaces:</dt>
<dd><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/AutoCloseable.html?is-external=true" title="class or interface in java.lang">AutoCloseable</a></dd>
</dl>
<dl>
<dt>Direct Known Subclasses:</dt>
<dd><a href="../../../../org/apache/drill/test/ClusterMockStorageFixture.html" title="class in org.apache.drill.test">ClusterMockStorageFixture</a></dd>
</dl>
<hr>
<br>
<pre>public class <span class="typeNameLabel">ClusterFixture</span>
extends <a href="../../../../org/apache/drill/test/BaseFixture.html" title="class in org.apache.drill.test">BaseFixture</a>
implements <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/AutoCloseable.html?is-external=true" title="class or interface in java.lang">AutoCloseable</a></pre>
<div class="block">Test fixture to start a Drillbit with provide options, create a client, and
execute queries. Can be used in JUnit tests, or in ad-hoc programs. Provides
a builder to set the necessary embedded Drillbit and client options, then
creates the requested Drillbit and client.
TODO: To support User Impersonation add Configuration dfsConf and set hadoop.proxyuser settings
similar to <a href="../../../../org/apache/drill/exec/impersonation/BaseTestImpersonation.html" title="class in org.apache.drill.exec.impersonation"><code>BaseTestImpersonation</code></a></div>
</li>
</ul>
</div>
<div class="summary">
<ul class="blockList">
<li class="blockList">
<!-- ======== NESTED CLASS SUMMARY ======== -->
<ul class="blockList">
<li class="blockList"><a name="nested.class.summary">
<!-- -->
</a>
<h3>Nested Class Summary</h3>
<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Nested Class Summary table, listing nested classes, and an explanation">
<caption><span>Nested Classes</span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Class and Description</th>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static class&nbsp;</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/drill/test/ClusterFixture.FixtureTestServices.html" title="class in org.apache.drill.test">ClusterFixture.FixtureTestServices</a></span></code>
<div class="block">Shim class to allow the <a href="../../../../org/apache/drill/test/TestBuilder.html" title="class in org.apache.drill.test"><code>TestBuilder</code></a> class to work with the
cluster fixture.</div>
</td>
</tr>
</table>
</li>
</ul>
<!-- =========== FIELD SUMMARY =========== -->
<ul class="blockList">
<li class="blockList"><a name="field.summary">
<!-- -->
</a>
<h3>Field Summary</h3>
<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Field Summary table, listing fields, and an explanation">
<caption><span>Fields</span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Field and Description</th>
</tr>
<tr class="altColor">
<td class="colFirst"><code>protected <a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a>&lt;<a href="../../../../org/apache/drill/test/ClientFixture.html" title="class in org.apache.drill.test">ClientFixture</a>&gt;</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/drill/test/ClusterFixture.html#clients">clients</a></span></code>&nbsp;</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/drill/test/ClusterFixture.html#DEFAULT_BIT_NAME">DEFAULT_BIT_NAME</a></span></code>&nbsp;</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/drill/test/ClusterFixture.html#EXPLAIN_PLAN_JSON">EXPLAIN_PLAN_JSON</a></span></code>&nbsp;</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/drill/test/ClusterFixture.html#EXPLAIN_PLAN_TEXT">EXPLAIN_PLAN_TEXT</a></span></code>&nbsp;</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/drill/test/ClusterFixture.html#MAX_WIDTH_PER_NODE">MAX_WIDTH_PER_NODE</a></span></code>&nbsp;</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>protected <a href="../../../../org/apache/drill/test/RestClientFixture.html" title="class in org.apache.drill.test">RestClientFixture</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/drill/test/ClusterFixture.html#restClientFixture">restClientFixture</a></span></code>&nbsp;</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static <a href="https://docs.oracle.com/javase/8/docs/api/java/util/Properties.html?is-external=true" title="class or interface in java.util">Properties</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/drill/test/ClusterFixture.html#TEST_CONFIGURATIONS">TEST_CONFIGURATIONS</a></span></code>&nbsp;</td>
</tr>
</table>
<ul class="blockList">
<li class="blockList"><a name="fields.inherited.from.class.org.apache.drill.test.BaseFixture">
<!-- -->
</a>
<h3>Fields inherited from class&nbsp;org.apache.drill.test.<a href="../../../../org/apache/drill/test/BaseFixture.html" title="class in org.apache.drill.test">BaseFixture</a></h3>
<code><a href="../../../../org/apache/drill/test/BaseFixture.html#allocator">allocator</a>, <a href="../../../../org/apache/drill/test/BaseFixture.html#config">config</a></code></li>
</ul>
</li>
</ul>
<!-- ========== METHOD SUMMARY =========== -->
<ul class="blockList">
<li class="blockList"><a name="method.summary">
<!-- -->
</a>
<h3>Method Summary</h3>
<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation">
<caption><span id="t0" class="activeTableTab"><span>All Methods</span><span class="tabEnd">&nbsp;</span></span><span id="t1" class="tableTab"><span><a href="javascript:show(1);">Static Methods</a></span><span class="tabEnd">&nbsp;</span></span><span id="t2" class="tableTab"><span><a href="javascript:show(2);">Instance Methods</a></span><span class="tabEnd">&nbsp;</span></span><span id="t4" class="tableTab"><span><a href="javascript:show(8);">Concrete Methods</a></span><span class="tabEnd">&nbsp;</span></span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Method and Description</th>
</tr>
<tr id="i0" class="altColor">
<td class="colFirst"><code><a href="../../../../org/apache/drill/test/ClientFixture.html" title="class in org.apache.drill.test">ClientFixture</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/drill/test/ClusterFixture.html#addClientFixture-java.util.Properties-">addClientFixture</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/util/Properties.html?is-external=true" title="class or interface in java.util">Properties</a>&nbsp;properties)</code>
<div class="block">It can be used to add one more client for <a href="../../../../org/apache/drill/test/ClusterFixture.html" title="class in org.apache.drill.test"><code>ClusterFixture</code></a>.</div>
</td>
</tr>
<tr id="i1" class="rowColor">
<td class="colFirst"><code>static <a href="../../../../org/apache/drill/test/ClusterFixtureBuilder.html" title="class in org.apache.drill.test">ClusterFixtureBuilder</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/drill/test/ClusterFixture.html#bareBuilder-org.apache.drill.test.BaseDirTestWatcher-">bareBuilder</a></span>(<a href="../../../../org/apache/drill/test/BaseDirTestWatcher.html" title="class in org.apache.drill.test">BaseDirTestWatcher</a>&nbsp;dirTestWatcher)</code>
<div class="block">Return a cluster builder without any of the usual defaults.</div>
</td>
</tr>
<tr id="i2" class="altColor">
<td class="colFirst"><code>static <a href="../../../../org/apache/drill/test/ClusterFixtureBuilder.html" title="class in org.apache.drill.test">ClusterFixtureBuilder</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/drill/test/ClusterFixture.html#builder-org.apache.drill.test.BaseDirTestWatcher-">builder</a></span>(<a href="../../../../org/apache/drill/test/BaseDirTestWatcher.html" title="class in org.apache.drill.test">BaseDirTestWatcher</a>&nbsp;dirTestWatcher)</code>&nbsp;</td>
</tr>
<tr id="i3" class="rowColor">
<td class="colFirst"><code><a href="../../../../org/apache/drill/exec/client/DrillClient.html" title="class in org.apache.drill.exec.client">DrillClient</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/drill/test/ClusterFixture.html#client--">client</a></span>()</code>&nbsp;</td>
</tr>
<tr id="i4" class="altColor">
<td class="colFirst"><code><a href="../../../../org/apache/drill/test/ClientFixture.html" title="class in org.apache.drill.test">ClientFixture</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/drill/test/ClusterFixture.html#client-int-">client</a></span>(int&nbsp;number)</code>&nbsp;</td>
</tr>
<tr id="i5" class="rowColor">
<td class="colFirst"><code><a href="../../../../org/apache/drill/test/ClientFixture.html" title="class in org.apache.drill.test">ClientFixture</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/drill/test/ClusterFixture.html#client-java.lang.String-int-">client</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;host,
int&nbsp;port)</code>
<div class="block">Create a test client for a specific host and port.</div>
</td>
</tr>
<tr id="i6" class="altColor">
<td class="colFirst"><code><a href="../../../../org/apache/drill/test/ClientFixture.ClientBuilder.html" title="class in org.apache.drill.test">ClientFixture.ClientBuilder</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/drill/test/ClusterFixture.html#clientBuilder--">clientBuilder</a></span>()</code>&nbsp;</td>
</tr>
<tr id="i7" class="rowColor">
<td class="colFirst"><code><a href="../../../../org/apache/drill/test/ClientFixture.ClientBuilder.html" title="class in org.apache.drill.test">ClientFixture.ClientBuilder</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/drill/test/ClusterFixture.html#clientBuilder-java.util.Properties-">clientBuilder</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/util/Properties.html?is-external=true" title="class or interface in java.util">Properties</a>&nbsp;properties)</code>&nbsp;</td>
</tr>
<tr id="i8" class="altColor">
<td class="colFirst"><code><a href="../../../../org/apache/drill/test/ClientFixture.html" title="class in org.apache.drill.test">ClientFixture</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/drill/test/ClusterFixture.html#clientFixture--">clientFixture</a></span>()</code>&nbsp;</td>
</tr>
<tr id="i9" class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/drill/test/ClusterFixture.html#close--">close</a></span>()</code>
<div class="block">Close the clients, Drillbits, allocator and
Zookeeper.</div>
</td>
</tr>
<tr id="i10" class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/drill/test/ClusterFixture.html#closeDrillbit-java.lang.String-">closeDrillbit</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;drillbitName)</code>
<div class="block">Shutdown the drillbit given the name of the drillbit.</div>
</td>
</tr>
<tr id="i11" class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/drill/test/ClusterFixture.html#defineFormat-java.lang.String-java.lang.String-org.apache.drill.common.logical.FormatPluginConfig-">defineFormat</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;pluginName,
<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;name,
<a href="../../../../org/apache/drill/common/logical/FormatPluginConfig.html" title="interface in org.apache.drill.common.logical">FormatPluginConfig</a>&nbsp;config)</code>&nbsp;</td>
</tr>
<tr id="i12" class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/drill/test/ClusterFixture.html#defineFormats-java.lang.String-java.util.Map-">defineFormats</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;pluginName,
<a href="https://docs.oracle.com/javase/8/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</a>&lt;<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>,<a href="../../../../org/apache/drill/common/logical/FormatPluginConfig.html" title="interface in org.apache.drill.common.logical">FormatPluginConfig</a>&gt;&nbsp;formats)</code>&nbsp;</td>
</tr>
<tr id="i13" class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/drill/test/ClusterFixture.html#defineImmutableWorkspace-java.lang.String-java.lang.String-java.lang.String-java.lang.String-org.apache.drill.common.logical.FormatPluginConfig-">defineImmutableWorkspace</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;pluginName,
<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;schemaName,
<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;path,
<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;defaultFormat,
<a href="../../../../org/apache/drill/common/logical/FormatPluginConfig.html" title="interface in org.apache.drill.common.logical">FormatPluginConfig</a>&nbsp;format)</code>&nbsp;</td>
</tr>
<tr id="i14" class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/drill/test/ClusterFixture.html#defineStoragePlugin-java.lang.String-org.apache.drill.common.logical.StoragePluginConfig-">defineStoragePlugin</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;name,
<a href="../../../../org/apache/drill/common/logical/StoragePluginConfig.html" title="class in org.apache.drill.common.logical">StoragePluginConfig</a>&nbsp;config)</code>&nbsp;</td>
</tr>
<tr id="i15" class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/drill/test/ClusterFixture.html#defineWorkspace-java.lang.String-java.lang.String-java.lang.String-java.lang.String-">defineWorkspace</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;pluginName,
<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;schemaName,
<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;path,
<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;defaultFormat)</code>
<div class="block">Define a workspace within an existing storage plugin.</div>
</td>
</tr>
<tr id="i16" class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/drill/test/ClusterFixture.html#defineWorkspace-java.lang.String-java.lang.String-java.lang.String-java.lang.String-org.apache.drill.common.logical.FormatPluginConfig-">defineWorkspace</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;pluginName,
<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;schemaName,
<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;path,
<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;defaultFormat,
<a href="../../../../org/apache/drill/common/logical/FormatPluginConfig.html" title="interface in org.apache.drill.common.logical">FormatPluginConfig</a>&nbsp;format)</code>&nbsp;</td>
</tr>
<tr id="i17" class="rowColor">
<td class="colFirst"><code><a href="../../../../org/apache/drill/exec/server/Drillbit.html" title="class in org.apache.drill.exec.server">Drillbit</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/drill/test/ClusterFixture.html#drillbit--">drillbit</a></span>()</code>&nbsp;</td>
</tr>
<tr id="i18" class="altColor">
<td class="colFirst"><code><a href="../../../../org/apache/drill/exec/server/Drillbit.html" title="class in org.apache.drill.exec.server">Drillbit</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/drill/test/ClusterFixture.html#drillbit-java.lang.String-">drillbit</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;name)</code>&nbsp;</td>
</tr>
<tr id="i19" class="rowColor">
<td class="colFirst"><code><a href="https://docs.oracle.com/javase/8/docs/api/java/util/Collection.html?is-external=true" title="class or interface in java.util">Collection</a>&lt;<a href="../../../../org/apache/drill/exec/server/Drillbit.html" title="class in org.apache.drill.exec.server">Drillbit</a>&gt;</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/drill/test/ClusterFixture.html#drillbits--">drillbits</a></span>()</code>&nbsp;</td>
</tr>
<tr id="i20" class="altColor">
<td class="colFirst"><code><a href="https://docs.oracle.com/javase/8/docs/api/java/util/Properties.html?is-external=true" title="class or interface in java.util">Properties</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/drill/test/ClusterFixture.html#getClientProps--">getClientProps</a></span>()</code>&nbsp;</td>
</tr>
<tr id="i21" class="rowColor">
<td class="colFirst"><code><a href="https://docs.oracle.com/javase/8/docs/api/java/io/File.html?is-external=true" title="class or interface in java.io">File</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/drill/test/ClusterFixture.html#getDrillTempDir--">getDrillTempDir</a></span>()</code>&nbsp;</td>
</tr>
<tr id="i22" class="altColor">
<td class="colFirst"><code><a href="https://docs.oracle.com/javase/8/docs/api/java/io/File.html?is-external=true" title="class or interface in java.io">File</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/drill/test/ClusterFixture.html#getProfileDir--">getProfileDir</a></span>()</code>
<div class="block">Returns the directory that holds query profiles.</div>
</td>
</tr>
<tr id="i23" class="rowColor">
<td class="colFirst"><code>static <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/drill/test/ClusterFixture.html#getResource-java.lang.String-">getResource</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;resource)</code>&nbsp;</td>
</tr>
<tr id="i24" class="altColor">
<td class="colFirst"><code><a href="https://docs.oracle.com/javase/8/docs/api/java/sql/Connection.html?is-external=true" title="class or interface in java.sql">Connection</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/drill/test/ClusterFixture.html#jdbcConnection--">jdbcConnection</a></span>()</code>
<div class="block">Return a JDBC connection to the default (first) Drillbit.</div>
</td>
</tr>
<tr id="i25" class="rowColor">
<td class="colFirst"><code>static <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/drill/test/ClusterFixture.html#loadResource-java.lang.String-">loadResource</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;resource)</code>
<div class="block">Load a resource file, returning the resource as a string.</div>
</td>
</tr>
<tr id="i26" class="altColor">
<td class="colFirst"><code><a href="https://docs.oracle.com/javase/8/docs/api/java/io/File.html?is-external=true" title="class or interface in java.io">File</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/drill/test/ClusterFixture.html#makeDataDir-java.lang.String-java.lang.String-org.apache.drill.common.logical.FormatPluginConfig-">makeDataDir</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;key,
<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;defaultFormat,
<a href="../../../../org/apache/drill/common/logical/FormatPluginConfig.html" title="interface in org.apache.drill.common.logical">FormatPluginConfig</a>&nbsp;formatPluginConfig)</code>
<div class="block">Create a temporary data directory which will be removed when the
cluster closes, and register it as a "dfs" name space.</div>
</td>
</tr>
<tr id="i27" class="rowColor">
<td class="colFirst"><code><a href="../../../../org/apache/drill/test/RestClientFixture.Builder.html" title="class in org.apache.drill.test">RestClientFixture.Builder</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/drill/test/ClusterFixture.html#restClientBuilder--">restClientBuilder</a></span>()</code>&nbsp;</td>
</tr>
<tr id="i28" class="altColor">
<td class="colFirst"><code><a href="../../../../org/apache/drill/test/RestClientFixture.html" title="class in org.apache.drill.test">RestClientFixture</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/drill/test/ClusterFixture.html#restClientFixture--">restClientFixture</a></span>()</code>&nbsp;</td>
</tr>
<tr id="i29" class="rowColor">
<td class="colFirst"><code><a href="../../../../org/apache/drill/exec/server/RemoteServiceSet.html" title="class in org.apache.drill.exec.server">RemoteServiceSet</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/drill/test/ClusterFixture.html#serviceSet--">serviceSet</a></span>()</code>&nbsp;</td>
</tr>
<tr id="i30" class="altColor">
<td class="colFirst"><code>static <a href="../../../../org/apache/drill/test/ClusterFixture.html" title="class in org.apache.drill.test">ClusterFixture</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/drill/test/ClusterFixture.html#standardCluster-org.apache.drill.test.BaseDirTestWatcher-">standardCluster</a></span>(<a href="../../../../org/apache/drill/test/BaseDirTestWatcher.html" title="class in org.apache.drill.test">BaseDirTestWatcher</a>&nbsp;dirTestWatcher)</code>
<div class="block">Return a cluster fixture built with standard options.</div>
</td>
</tr>
<tr id="i31" class="rowColor">
<td class="colFirst"><code><a href="../../../../org/apache/drill/exec/store/StoragePluginRegistry.html" title="interface in org.apache.drill.exec.store">StoragePluginRegistry</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/drill/test/ClusterFixture.html#storageRegistry--">storageRegistry</a></span>()</code>&nbsp;</td>
</tr>
<tr id="i32" class="altColor">
<td class="colFirst"><code><a href="../../../../org/apache/drill/exec/store/StoragePluginRegistry.html" title="interface in org.apache.drill.exec.store">StoragePluginRegistry</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/drill/test/ClusterFixture.html#storageRegistry-java.lang.String-">storageRegistry</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;name)</code>&nbsp;</td>
</tr>
<tr id="i33" class="rowColor">
<td class="colFirst"><code>static <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/drill/test/ClusterFixture.html#stringify-java.lang.Object-">stringify</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>&nbsp;value)</code>
<div class="block">Convert a Java object (typically a boxed scalar) to a string
for use in SQL.</div>
</td>
</tr>
<tr id="i34" class="altColor">
<td class="colFirst"><code>static <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/drill/test/ClusterFixture.html#trimSlash-java.lang.String-">trimSlash</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;path)</code>
<div class="block">Guava likes paths to resources without an initial slash, the JDK
needs a slash.</div>
</td>
</tr>
<tr id="i35" class="rowColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/drill/test/ClusterFixture.html#usesZK--">usesZK</a></span>()</code>&nbsp;</td>
</tr>
</table>
<ul class="blockList">
<li class="blockList"><a name="methods.inherited.from.class.org.apache.drill.test.BaseFixture">
<!-- -->
</a>
<h3>Methods inherited from class&nbsp;org.apache.drill.test.<a href="../../../../org/apache/drill/test/BaseFixture.html" title="class in org.apache.drill.test">BaseFixture</a></h3>
<code><a href="../../../../org/apache/drill/test/BaseFixture.html#allocator--">allocator</a>, <a href="../../../../org/apache/drill/test/BaseFixture.html#config--">config</a>, <a href="../../../../org/apache/drill/test/BaseFixture.html#dirtyMemory-org.apache.drill.exec.memory.BufferAllocator-int-">dirtyMemory</a>, <a href="../../../../org/apache/drill/test/BaseFixture.html#dirtyMemory-int-">dirtyMemory</a>, <a href="../../../../org/apache/drill/test/BaseFixture.html#getTempDir-java.lang.String-">getTempDir</a></code></li>
</ul>
<ul class="blockList">
<li class="blockList"><a name="methods.inherited.from.class.java.lang.Object">
<!-- -->
</a>
<h3>Methods inherited from class&nbsp;java.lang.<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></h3>
<code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#clone--" title="class or interface in java.lang">clone</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#equals-java.lang.Object-" title="class or interface in java.lang">equals</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#finalize--" title="class or interface in java.lang">finalize</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#getClass--" title="class or interface in java.lang">getClass</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#hashCode--" title="class or interface in java.lang">hashCode</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#notify--" title="class or interface in java.lang">notify</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#notifyAll--" title="class or interface in java.lang">notifyAll</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#toString--" title="class or interface in java.lang">toString</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#wait--" title="class or interface in java.lang">wait</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#wait-long-" title="class or interface in java.lang">wait</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#wait-long-int-" title="class or interface in java.lang">wait</a></code></li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
<div class="details">
<ul class="blockList">
<li class="blockList">
<!-- ============ FIELD DETAIL =========== -->
<ul class="blockList">
<li class="blockList"><a name="field.detail">
<!-- -->
</a>
<h3>Field Detail</h3>
<a name="MAX_WIDTH_PER_NODE">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>MAX_WIDTH_PER_NODE</h4>
<pre>public static final&nbsp;int MAX_WIDTH_PER_NODE</pre>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../constant-values.html#org.apache.drill.test.ClusterFixture.MAX_WIDTH_PER_NODE">Constant Field Values</a></dd>
</dl>
</li>
</ul>
<a name="TEST_CONFIGURATIONS">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>TEST_CONFIGURATIONS</h4>
<pre>public static final&nbsp;<a href="https://docs.oracle.com/javase/8/docs/api/java/util/Properties.html?is-external=true" title="class or interface in java.util">Properties</a> TEST_CONFIGURATIONS</pre>
</li>
</ul>
<a name="DEFAULT_BIT_NAME">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>DEFAULT_BIT_NAME</h4>
<pre>public static final&nbsp;<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> DEFAULT_BIT_NAME</pre>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../constant-values.html#org.apache.drill.test.ClusterFixture.DEFAULT_BIT_NAME">Constant Field Values</a></dd>
</dl>
</li>
</ul>
<a name="clients">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>clients</h4>
<pre>protected&nbsp;<a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a>&lt;<a href="../../../../org/apache/drill/test/ClientFixture.html" title="class in org.apache.drill.test">ClientFixture</a>&gt; clients</pre>
</li>
</ul>
<a name="restClientFixture">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>restClientFixture</h4>
<pre>protected&nbsp;<a href="../../../../org/apache/drill/test/RestClientFixture.html" title="class in org.apache.drill.test">RestClientFixture</a> restClientFixture</pre>
</li>
</ul>
<a name="EXPLAIN_PLAN_TEXT">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>EXPLAIN_PLAN_TEXT</h4>
<pre>public static final&nbsp;<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> EXPLAIN_PLAN_TEXT</pre>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../constant-values.html#org.apache.drill.test.ClusterFixture.EXPLAIN_PLAN_TEXT">Constant Field Values</a></dd>
</dl>
</li>
</ul>
<a name="EXPLAIN_PLAN_JSON">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>EXPLAIN_PLAN_JSON</h4>
<pre>public static final&nbsp;<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> EXPLAIN_PLAN_JSON</pre>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../constant-values.html#org.apache.drill.test.ClusterFixture.EXPLAIN_PLAN_JSON">Constant Field Values</a></dd>
</dl>
</li>
</ul>
</li>
</ul>
<!-- ============ METHOD DETAIL ========== -->
<ul class="blockList">
<li class="blockList"><a name="method.detail">
<!-- -->
</a>
<h3>Method Detail</h3>
<a name="getClientProps--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getClientProps</h4>
<pre>public&nbsp;<a href="https://docs.oracle.com/javase/8/docs/api/java/util/Properties.html?is-external=true" title="class or interface in java.util">Properties</a>&nbsp;getClientProps()</pre>
</li>
</ul>
<a name="drillbit--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>drillbit</h4>
<pre>public&nbsp;<a href="../../../../org/apache/drill/exec/server/Drillbit.html" title="class in org.apache.drill.exec.server">Drillbit</a>&nbsp;drillbit()</pre>
</li>
</ul>
<a name="drillbit-java.lang.String-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>drillbit</h4>
<pre>public&nbsp;<a href="../../../../org/apache/drill/exec/server/Drillbit.html" title="class in org.apache.drill.exec.server">Drillbit</a>&nbsp;drillbit(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;name)</pre>
</li>
</ul>
<a name="drillbits--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>drillbits</h4>
<pre>public&nbsp;<a href="https://docs.oracle.com/javase/8/docs/api/java/util/Collection.html?is-external=true" title="class or interface in java.util">Collection</a>&lt;<a href="../../../../org/apache/drill/exec/server/Drillbit.html" title="class in org.apache.drill.exec.server">Drillbit</a>&gt;&nbsp;drillbits()</pre>
</li>
</ul>
<a name="serviceSet--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>serviceSet</h4>
<pre>public&nbsp;<a href="../../../../org/apache/drill/exec/server/RemoteServiceSet.html" title="class in org.apache.drill.exec.server">RemoteServiceSet</a>&nbsp;serviceSet()</pre>
</li>
</ul>
<a name="clientBuilder--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>clientBuilder</h4>
<pre>public&nbsp;<a href="../../../../org/apache/drill/test/ClientFixture.ClientBuilder.html" title="class in org.apache.drill.test">ClientFixture.ClientBuilder</a>&nbsp;clientBuilder()</pre>
</li>
</ul>
<a name="clientBuilder-java.util.Properties-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>clientBuilder</h4>
<pre>public&nbsp;<a href="../../../../org/apache/drill/test/ClientFixture.ClientBuilder.html" title="class in org.apache.drill.test">ClientFixture.ClientBuilder</a>&nbsp;clientBuilder(<a href="https://docs.oracle.com/javase/8/docs/api/java/util/Properties.html?is-external=true" title="class or interface in java.util">Properties</a>&nbsp;properties)</pre>
</li>
</ul>
<a name="restClientBuilder--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>restClientBuilder</h4>
<pre>public&nbsp;<a href="../../../../org/apache/drill/test/RestClientFixture.Builder.html" title="class in org.apache.drill.test">RestClientFixture.Builder</a>&nbsp;restClientBuilder()</pre>
</li>
</ul>
<a name="clientFixture--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>clientFixture</h4>
<pre>public&nbsp;<a href="../../../../org/apache/drill/test/ClientFixture.html" title="class in org.apache.drill.test">ClientFixture</a>&nbsp;clientFixture()</pre>
</li>
</ul>
<a name="addClientFixture-java.util.Properties-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>addClientFixture</h4>
<pre>public&nbsp;<a href="../../../../org/apache/drill/test/ClientFixture.html" title="class in org.apache.drill.test">ClientFixture</a>&nbsp;addClientFixture(<a href="https://docs.oracle.com/javase/8/docs/api/java/util/Properties.html?is-external=true" title="class or interface in java.util">Properties</a>&nbsp;properties)</pre>
<div class="block">It can be used to add one more client for <a href="../../../../org/apache/drill/test/ClusterFixture.html" title="class in org.apache.drill.test"><code>ClusterFixture</code></a>. <br>
Note: <a href="../../../../org/apache/drill/test/ClusterTest.html#client"><code>ClusterTest.client</code></a></div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>properties</code> - client Properties (clientProps)</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>new ClientFixture for current ClusterFixture</dd>
</dl>
</li>
</ul>
<a name="client-java.lang.String-int-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>client</h4>
<pre>public&nbsp;<a href="../../../../org/apache/drill/test/ClientFixture.html" title="class in org.apache.drill.test">ClientFixture</a>&nbsp;client(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;host,
int&nbsp;port)</pre>
<div class="block">Create a test client for a specific host and port.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>host</code> - host, must be one of those created by this
fixture</dd>
<dd><code>port</code> - post, must be one of those created by this
fixture</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>a test client. Client will be closed when this cluster
fixture closes, or can be closed early</dd>
</dl>
</li>
</ul>
<a name="restClientFixture--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>restClientFixture</h4>
<pre>public&nbsp;<a href="../../../../org/apache/drill/test/RestClientFixture.html" title="class in org.apache.drill.test">RestClientFixture</a>&nbsp;restClientFixture()</pre>
</li>
</ul>
<a name="client--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>client</h4>
<pre>public&nbsp;<a href="../../../../org/apache/drill/exec/client/DrillClient.html" title="class in org.apache.drill.exec.client">DrillClient</a>&nbsp;client()</pre>
</li>
</ul>
<a name="client-int-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>client</h4>
<pre>public&nbsp;<a href="../../../../org/apache/drill/test/ClientFixture.html" title="class in org.apache.drill.test">ClientFixture</a>&nbsp;client(int&nbsp;number)</pre>
</li>
</ul>
<a name="jdbcConnection--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>jdbcConnection</h4>
<pre>public&nbsp;<a href="https://docs.oracle.com/javase/8/docs/api/java/sql/Connection.html?is-external=true" title="class or interface in java.sql">Connection</a>&nbsp;jdbcConnection()</pre>
<div class="block">Return a JDBC connection to the default (first) Drillbit.
Note that this code requires special setup of the test code.
Tests in the "exec" package do not normally have visibility
to the Drill JDBC driver. So, the test must put that code
on the class path manually in order for this code to load the
JDBC classes. The caller is responsible for closing the JDBC
connection before closing the cluster. (An enhancement is to
do the close automatically as is done for clients.)</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>a JDBC connection to the default Drillbit</dd>
</dl>
</li>
</ul>
<a name="close--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>close</h4>
<pre>public&nbsp;void&nbsp;close()
throws <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Exception.html?is-external=true" title="class or interface in java.lang">Exception</a></pre>
<div class="block">Close the clients, Drillbits, allocator and
Zookeeper. Checks for exceptions. If an exception occurs,
continues closing, suppresses subsequent exceptions, and
throws the first exception at completion of close. This allows
the test code to detect any state corruption which only shows
itself when shutting down resources (memory leaks, for example.)</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/AutoCloseable.html?is-external=true#close--" title="class or interface in java.lang">close</a></code>&nbsp;in interface&nbsp;<code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/AutoCloseable.html?is-external=true" title="class or interface in java.lang">AutoCloseable</a></code></dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Exception.html?is-external=true" title="class or interface in java.lang">Exception</a></code></dd>
</dl>
</li>
</ul>
<a name="closeDrillbit-java.lang.String-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>closeDrillbit</h4>
<pre>public&nbsp;void&nbsp;closeDrillbit(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;drillbitName)
throws <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Exception.html?is-external=true" title="class or interface in java.lang">Exception</a></pre>
<div class="block">Shutdown the drillbit given the name of the drillbit.</div>
<dl>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Exception.html?is-external=true" title="class or interface in java.lang">Exception</a></code></dd>
</dl>
</li>
</ul>
<a name="defineStoragePlugin-java.lang.String-org.apache.drill.common.logical.StoragePluginConfig-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>defineStoragePlugin</h4>
<pre>public&nbsp;void&nbsp;defineStoragePlugin(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;name,
<a href="../../../../org/apache/drill/common/logical/StoragePluginConfig.html" title="class in org.apache.drill.common.logical">StoragePluginConfig</a>&nbsp;config)</pre>
</li>
</ul>
<a name="defineWorkspace-java.lang.String-java.lang.String-java.lang.String-java.lang.String-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>defineWorkspace</h4>
<pre>public&nbsp;void&nbsp;defineWorkspace(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;pluginName,
<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;schemaName,
<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;path,
<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;defaultFormat)</pre>
<div class="block">Define a workspace within an existing storage plugin. Useful for
pointing to local file system files outside the Drill source tree.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>pluginName</code> - name of the plugin like "dfs".</dd>
<dd><code>schemaName</code> - name of the new schema</dd>
<dd><code>path</code> - directory location (usually local)</dd>
<dd><code>defaultFormat</code> - default format for files in the schema</dd>
</dl>
</li>
</ul>
<a name="defineWorkspace-java.lang.String-java.lang.String-java.lang.String-java.lang.String-org.apache.drill.common.logical.FormatPluginConfig-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>defineWorkspace</h4>
<pre>public&nbsp;void&nbsp;defineWorkspace(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;pluginName,
<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;schemaName,
<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;path,
<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;defaultFormat,
<a href="../../../../org/apache/drill/common/logical/FormatPluginConfig.html" title="interface in org.apache.drill.common.logical">FormatPluginConfig</a>&nbsp;format)</pre>
</li>
</ul>
<a name="defineImmutableWorkspace-java.lang.String-java.lang.String-java.lang.String-java.lang.String-org.apache.drill.common.logical.FormatPluginConfig-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>defineImmutableWorkspace</h4>
<pre>public&nbsp;void&nbsp;defineImmutableWorkspace(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;pluginName,
<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;schemaName,
<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;path,
<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;defaultFormat,
<a href="../../../../org/apache/drill/common/logical/FormatPluginConfig.html" title="interface in org.apache.drill.common.logical">FormatPluginConfig</a>&nbsp;format)</pre>
</li>
</ul>
<a name="defineFormat-java.lang.String-java.lang.String-org.apache.drill.common.logical.FormatPluginConfig-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>defineFormat</h4>
<pre>public&nbsp;void&nbsp;defineFormat(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;pluginName,
<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;name,
<a href="../../../../org/apache/drill/common/logical/FormatPluginConfig.html" title="interface in org.apache.drill.common.logical">FormatPluginConfig</a>&nbsp;config)</pre>
</li>
</ul>
<a name="defineFormats-java.lang.String-java.util.Map-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>defineFormats</h4>
<pre>public&nbsp;void&nbsp;defineFormats(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;pluginName,
<a href="https://docs.oracle.com/javase/8/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</a>&lt;<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>,<a href="../../../../org/apache/drill/common/logical/FormatPluginConfig.html" title="interface in org.apache.drill.common.logical">FormatPluginConfig</a>&gt;&nbsp;formats)</pre>
</li>
</ul>
<a name="builder-org.apache.drill.test.BaseDirTestWatcher-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>builder</h4>
<pre>public static&nbsp;<a href="../../../../org/apache/drill/test/ClusterFixtureBuilder.html" title="class in org.apache.drill.test">ClusterFixtureBuilder</a>&nbsp;builder(<a href="../../../../org/apache/drill/test/BaseDirTestWatcher.html" title="class in org.apache.drill.test">BaseDirTestWatcher</a>&nbsp;dirTestWatcher)</pre>
</li>
</ul>
<a name="bareBuilder-org.apache.drill.test.BaseDirTestWatcher-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>bareBuilder</h4>
<pre>public static&nbsp;<a href="../../../../org/apache/drill/test/ClusterFixtureBuilder.html" title="class in org.apache.drill.test">ClusterFixtureBuilder</a>&nbsp;bareBuilder(<a href="../../../../org/apache/drill/test/BaseDirTestWatcher.html" title="class in org.apache.drill.test">BaseDirTestWatcher</a>&nbsp;dirTestWatcher)</pre>
<div class="block">Return a cluster builder without any of the usual defaults. Use
this only for special cases. Your code is responsible for all the
odd bits that must be set to get the setup right. See
<a href="../../../../org/apache/drill/test/ClusterFixture.html#TEST_CONFIGURATIONS"><code>TEST_CONFIGURATIONS</code></a> for details. Note that
you are often better off using the defaults, then replacing selected
properties with the values you prefer.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>a fixture builder with no default properties set</dd>
</dl>
</li>
</ul>
<a name="standardCluster-org.apache.drill.test.BaseDirTestWatcher-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>standardCluster</h4>
<pre>public static&nbsp;<a href="../../../../org/apache/drill/test/ClusterFixture.html" title="class in org.apache.drill.test">ClusterFixture</a>&nbsp;standardCluster(<a href="../../../../org/apache/drill/test/BaseDirTestWatcher.html" title="class in org.apache.drill.test">BaseDirTestWatcher</a>&nbsp;dirTestWatcher)</pre>
<div class="block">Return a cluster fixture built with standard options. This is a short-cut
for simple tests that don't need special setup.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>dirTestWatcher</code> - directory test watcher</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>a cluster fixture with standard options</dd>
</dl>
</li>
</ul>
<a name="stringify-java.lang.Object-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>stringify</h4>
<pre>public static&nbsp;<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;stringify(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>&nbsp;value)</pre>
<div class="block">Convert a Java object (typically a boxed scalar) to a string
for use in SQL. Quotes strings but just converts others to
string format. If value to encode is null, return null.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>value</code> - the value to encode</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the SQL-acceptable string equivalent</dd>
</dl>
</li>
</ul>
<a name="getResource-java.lang.String-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getResource</h4>
<pre>public static&nbsp;<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;getResource(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;resource)
throws <a href="https://docs.oracle.com/javase/8/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
<dl>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code></dd>
</dl>
</li>
</ul>
<a name="loadResource-java.lang.String-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>loadResource</h4>
<pre>public static&nbsp;<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;loadResource(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;resource)</pre>
<div class="block">Load a resource file, returning the resource as a string.
"Hides" the checked exception as unchecked, which is fine
in a test as the unchecked exception will fail the test
without unnecessary error fiddling.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>resource</code> - path to the resource</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the resource contents as a string</dd>
</dl>
</li>
</ul>
<a name="trimSlash-java.lang.String-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>trimSlash</h4>
<pre>public static&nbsp;<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;trimSlash(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;path)</pre>
<div class="block">Guava likes paths to resources without an initial slash, the JDK
needs a slash. Normalize the path when needed.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>path</code> - resource path with optional leading slash</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>same path without the leading slash</dd>
</dl>
</li>
</ul>
<a name="makeDataDir-java.lang.String-java.lang.String-org.apache.drill.common.logical.FormatPluginConfig-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>makeDataDir</h4>
<pre>public&nbsp;<a href="https://docs.oracle.com/javase/8/docs/api/java/io/File.html?is-external=true" title="class or interface in java.io">File</a>&nbsp;makeDataDir(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;key,
<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;defaultFormat,
<a href="../../../../org/apache/drill/common/logical/FormatPluginConfig.html" title="interface in org.apache.drill.common.logical">FormatPluginConfig</a>&nbsp;formatPluginConfig)</pre>
<div class="block">Create a temporary data directory which will be removed when the
cluster closes, and register it as a "dfs" name space.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>key</code> - The name to use for the directory and the name space.
Access the directory as "dfs.<key>".</dd>
<dd><code>defaultFormat</code> - The default storage format for the workspace.</dd>
<dd><code>formatPluginConfig</code> - The format plugin config.</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>location of the directory which can be used to create
temporary input files</dd>
</dl>
</li>
</ul>
<a name="getDrillTempDir--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getDrillTempDir</h4>
<pre>public&nbsp;<a href="https://docs.oracle.com/javase/8/docs/api/java/io/File.html?is-external=true" title="class or interface in java.io">File</a>&nbsp;getDrillTempDir()</pre>
</li>
</ul>
<a name="usesZK--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>usesZK</h4>
<pre>public&nbsp;boolean&nbsp;usesZK()</pre>
</li>
</ul>
<a name="getProfileDir--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getProfileDir</h4>
<pre>public&nbsp;<a href="https://docs.oracle.com/javase/8/docs/api/java/io/File.html?is-external=true" title="class or interface in java.io">File</a>&nbsp;getProfileDir()</pre>
<div class="block">Returns the directory that holds query profiles. Valid only for an
embedded Drillbit with local cluster coordinator &ndash; the normal
case for unit tests.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>query profile directory</dd>
</dl>
</li>
</ul>
<a name="storageRegistry--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>storageRegistry</h4>
<pre>public&nbsp;<a href="../../../../org/apache/drill/exec/store/StoragePluginRegistry.html" title="interface in org.apache.drill.exec.store">StoragePluginRegistry</a>&nbsp;storageRegistry()</pre>
</li>
</ul>
<a name="storageRegistry-java.lang.String-">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>storageRegistry</h4>
<pre>public&nbsp;<a href="../../../../org/apache/drill/exec/store/StoragePluginRegistry.html" title="interface in org.apache.drill.exec.store">StoragePluginRegistry</a>&nbsp;storageRegistry(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;name)</pre>
</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="Skip navigation links">Skip navigation links</a></div>
<a name="navbar.bottom.firstrow">
<!-- -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../overview-summary.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="class-use/ClusterFixture.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">
<li><a href="../../../../org/apache/drill/test/ClientFixture.StatementParser.html" title="class in org.apache.drill.test"><span class="typeNameLink">Prev&nbsp;Class</span></a></li>
<li><a href="../../../../org/apache/drill/test/ClusterFixture.FixtureTestServices.html" title="class in org.apache.drill.test"><span class="typeNameLink">Next&nbsp;Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../../index.html?org/apache/drill/test/ClusterFixture.html" target="_top">Frames</a></li>
<li><a href="ClusterFixture.html" target="_top">No&nbsp;Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_bottom">
<li><a href="../../../../allclasses-noframe.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>
</div>
<div>
<ul class="subNavList">
<li>Summary:&nbsp;</li>
<li><a href="#nested.class.summary">Nested</a>&nbsp;|&nbsp;</li>
<li><a href="#field.summary">Field</a>&nbsp;|&nbsp;</li>
<li>Constr&nbsp;|&nbsp;</li>
<li><a href="#method.summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail:&nbsp;</li>
<li><a href="#field.detail">Field</a>&nbsp;|&nbsp;</li>
<li>Constr&nbsp;|&nbsp;</li>
<li><a href="#method.detail">Method</a></li>
</ul>
</div>
<a name="skip.navbar.bottom">
<!-- -->
</a></div>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
<p class="legalCopy"><small>Copyright &#169; 2022 <a href="https://www.apache.org/">The Apache Software Foundation</a>. All rights reserved.</small></p>
</body>
</html>