blob: 49d60ea52e1f92d25384a38ae32d82395c0b0b13 [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 -->
<title>Index (Apache Geode 1.15.0)</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="Index (Apache Geode 1.15.0)";
}
}
catch(err) {
}
//-->
var methods = {"i0":6,"i1":6,"i2":6,"i3":6,"i4":6,"i5":6,"i6":6,"i7":6,"i8":6,"i9":6,"i10":18};
var tabs = {65535:["t0","All Methods"],2:["t2","Instance Methods"],4:["t3","Abstract Methods"],16:["t5","Default 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="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/geode/cache/query/FunctionDomainException.html" title="class in org.apache.geode.cache.query"><span class="typeNameLink">Prev&nbsp;Class</span></a></li>
<li><a href="../../../../../org/apache/geode/cache/query/IndexCreationException.html" title="class in org.apache.geode.cache.query"><span class="typeNameLink">Next&nbsp;Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../../../index.html?org/apache/geode/cache/query/Index.html" target="_top">Frames</a></li>
<li><a href="Index.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>Nested&nbsp;|&nbsp;</li>
<li>Field&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>Field&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.geode.cache.query</div>
<h2 title="Interface Index" class="title">Interface Index</h2>
</div>
<div class="contentContainer">
<div class="description">
<ul class="blockList">
<li class="blockList">
<hr>
<br>
<pre>public interface <span class="typeNameLabel">Index</span></pre>
<div class="block">An index that is built over the data stored in a GemFire <a href="../../../../../org/apache/geode/cache/Region.html" title="interface in org.apache.geode.cache"><code>Region</code></a>.
<p>
For a description of the types of indexes that GemFire currently supports, see
<a href="../../../../../org/apache/geode/cache/query/IndexType.html" title="enum in org.apache.geode.cache.query">IndexType</a>.
<p>
An index is specified using a name, indexedExpression, fromClause, and optionally a
projectionAttributes.
<p>
The name uniquely identifies the index to for the statistics services in GemFire.
<p>
The indexedExpression is the lookup value for the index. The way that an indexedExpression is
specified and used varies depending on the type of index. For more information, see
<a href="../../../../../org/apache/geode/cache/query/IndexType.html" title="enum in org.apache.geode.cache.query">IndexType</a>.
<p>
The fromClause specifies the collection(s) of objects that the index ranges over, and must
contain one and only one region path.
<p>
The optional projectAttributes specifies a tranformation that is done on the values and is used
for pre-computing a corresponding projection as defined in a query.</div>
<dl>
<dt><span class="simpleTagLabel">Since:</span></dt>
<dd>GemFire 4.0</dd>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../../org/apache/geode/cache/query/QueryService.html#createIndex-java.lang.String-org.apache.geode.cache.query.IndexType-java.lang.String-java.lang.String-"><code>QueryService.createIndex(String, IndexType, String, String)</code></a>,
<a href="../../../../../org/apache/geode/cache/query/IndexType.html" title="enum in org.apache.geode.cache.query"><code>IndexType</code></a></dd>
</dl>
</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>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="t2" class="tableTab"><span><a href="javascript:show(2);">Instance Methods</a></span><span class="tabEnd">&nbsp;</span></span><span id="t3" class="tableTab"><span><a href="javascript:show(4);">Abstract Methods</a></span><span class="tabEnd">&nbsp;</span></span><span id="t5" class="tableTab"><span><a href="javascript:show(16);">Default 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="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/geode/cache/query/Index.html#getCanonicalizedFromClause--">getCanonicalizedFromClause</a></span>()</code>
<div class="block">Get the canonicalized fromClause for this index.</div>
</td>
</tr>
<tr id="i1" class="rowColor">
<td class="colFirst"><code><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/geode/cache/query/Index.html#getCanonicalizedIndexedExpression--">getCanonicalizedIndexedExpression</a></span>()</code>
<div class="block">Get the canonicalized indexedExpression for this index.</div>
</td>
</tr>
<tr id="i2" class="altColor">
<td class="colFirst"><code><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/geode/cache/query/Index.html#getCanonicalizedProjectionAttributes--">getCanonicalizedProjectionAttributes</a></span>()</code>
<div class="block">Get the canonicalized projectionAttributes for this expression.</div>
</td>
</tr>
<tr id="i3" class="rowColor">
<td class="colFirst"><code><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/geode/cache/query/Index.html#getFromClause--">getFromClause</a></span>()</code>
<div class="block">Get the original fromClause for this index.</div>
</td>
</tr>
<tr id="i4" class="altColor">
<td class="colFirst"><code><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/geode/cache/query/Index.html#getIndexedExpression--">getIndexedExpression</a></span>()</code>
<div class="block">Get the original indexedExpression for this index.</div>
</td>
</tr>
<tr id="i5" class="rowColor">
<td class="colFirst"><code><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/geode/cache/query/Index.html#getName--">getName</a></span>()</code>
<div class="block">Returns the unique name of this index</div>
</td>
</tr>
<tr id="i6" class="altColor">
<td class="colFirst"><code><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/geode/cache/query/Index.html#getProjectionAttributes--">getProjectionAttributes</a></span>()</code>
<div class="block">Get the original projectionAttributes for this expression.</div>
</td>
</tr>
<tr id="i7" class="rowColor">
<td class="colFirst"><code><a href="../../../../../org/apache/geode/cache/Region.html" title="interface in org.apache.geode.cache">Region</a>&lt;?,?&gt;</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/geode/cache/query/Index.html#getRegion--">getRegion</a></span>()</code>
<div class="block">The Region this index is on</div>
</td>
</tr>
<tr id="i8" class="altColor">
<td class="colFirst"><code><a href="../../../../../org/apache/geode/cache/query/IndexStatistics.html" title="interface in org.apache.geode.cache.query">IndexStatistics</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/geode/cache/query/Index.html#getStatistics--">getStatistics</a></span>()</code>
<div class="block">Get statistics information for this index.</div>
</td>
</tr>
<tr id="i9" class="rowColor">
<td class="colFirst"><code><a href="../../../../../org/apache/geode/cache/query/IndexType.html" title="enum in org.apache.geode.cache.query">IndexType</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/geode/cache/query/Index.html#getType--">getType</a></span>()</code>
<div class="block">Get the index type</div>
</td>
</tr>
<tr id="i10" class="altColor">
<td class="colFirst"><code>default boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/geode/cache/query/Index.html#isValid--">isValid</a></span>()</code>
<div class="block">Get whether index is valid to be used in queries.</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>Method Detail</h3>
<a name="getName--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getName</h4>
<pre><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;getName()</pre>
<div class="block">Returns the unique name of this index</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the unique name of this index</dd>
</dl>
</li>
</ul>
<a name="getType--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getType</h4>
<pre><a href="../../../../../org/apache/geode/cache/query/IndexType.html" title="enum in org.apache.geode.cache.query">IndexType</a>&nbsp;getType()</pre>
<div class="block">Get the index type</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the type of index</dd>
</dl>
</li>
</ul>
<a name="getRegion--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getRegion</h4>
<pre><a href="../../../../../org/apache/geode/cache/Region.html" title="interface in org.apache.geode.cache">Region</a>&lt;?,?&gt;&nbsp;getRegion()</pre>
<div class="block">The Region this index is on</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the Region for this index</dd>
</dl>
</li>
</ul>
<a name="getStatistics--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getStatistics</h4>
<pre><a href="../../../../../org/apache/geode/cache/query/IndexStatistics.html" title="interface in org.apache.geode.cache.query">IndexStatistics</a>&nbsp;getStatistics()</pre>
<div class="block">Get statistics information for this index.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>statistics information for this index</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/UnsupportedOperationException.html?is-external=true" title="class or interface in java.lang">UnsupportedOperationException</a></code> - for indexes created on Maps. Example: Index on Maps with
expression p['key']. <br>
On Map type indexes the stats are created at individual key level that can be viewed in
VSD stats.</dd>
</dl>
</li>
</ul>
<a name="getFromClause--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getFromClause</h4>
<pre><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;getFromClause()</pre>
<div class="block">Get the original fromClause for this index.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the original fromClause for this index</dd>
</dl>
</li>
</ul>
<a name="isValid--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>isValid</h4>
<pre>default&nbsp;boolean&nbsp;isValid()</pre>
<div class="block">Get whether index is valid to be used in queries.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>whether index is valid to be used in queries</dd>
</dl>
</li>
</ul>
<a name="getCanonicalizedFromClause--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getCanonicalizedFromClause</h4>
<pre><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;getCanonicalizedFromClause()</pre>
<div class="block">Get the canonicalized fromClause for this index.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the canonicalized fromClause for this index</dd>
</dl>
</li>
</ul>
<a name="getIndexedExpression--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getIndexedExpression</h4>
<pre><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;getIndexedExpression()</pre>
<div class="block">Get the original indexedExpression for this index.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the original indexedExpression for this index</dd>
</dl>
</li>
</ul>
<a name="getCanonicalizedIndexedExpression--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getCanonicalizedIndexedExpression</h4>
<pre><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;getCanonicalizedIndexedExpression()</pre>
<div class="block">Get the canonicalized indexedExpression for this index.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the canonicalized indexedExpression for this index</dd>
</dl>
</li>
</ul>
<a name="getProjectionAttributes--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getProjectionAttributes</h4>
<pre><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;getProjectionAttributes()</pre>
<div class="block">Get the original projectionAttributes for this expression.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the projectionAttributes, or "*" if there were none specified at index creation.</dd>
</dl>
</li>
</ul>
<a name="getCanonicalizedProjectionAttributes--">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>getCanonicalizedProjectionAttributes</h4>
<pre><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;getCanonicalizedProjectionAttributes()</pre>
<div class="block">Get the canonicalized projectionAttributes for this expression.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the projectionAttributes, or "*" if there were none specified at index creation.</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="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="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/geode/cache/query/FunctionDomainException.html" title="class in org.apache.geode.cache.query"><span class="typeNameLink">Prev&nbsp;Class</span></a></li>
<li><a href="../../../../../org/apache/geode/cache/query/IndexCreationException.html" title="class in org.apache.geode.cache.query"><span class="typeNameLink">Next&nbsp;Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../../../index.html?org/apache/geode/cache/query/Index.html" target="_top">Frames</a></li>
<li><a href="Index.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>Nested&nbsp;|&nbsp;</li>
<li>Field&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>Field&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 ======= -->
</body>
</html>