| <!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>Linq4j (Apache Calcite calcite API)</title> |
| <link rel="stylesheet" type="text/css" href="../../../../stylesheet.css" title="Style"> |
| <script type="text/javascript" src="../../../../script.js"></script> |
| </head> |
| <body> |
| <script type="text/javascript"><!-- |
| try { |
| if (location.href.indexOf('is-external=true') == -1) { |
| parent.document.title="Linq4j (Apache Calcite calcite API)"; |
| } |
| } |
| catch(err) { |
| } |
| //--> |
| var methods = {"i0":9,"i1":9,"i2":9,"i3":9,"i4":9,"i5":9,"i6":9,"i7":9,"i8":9,"i9":9,"i10":41,"i11":9,"i12":9,"i13":9,"i14":9,"i15":9,"i16":41,"i17":9,"i18":9,"i19":9,"i20":9}; |
| var tabs = {65535:["t0","All Methods"],1:["t1","Static Methods"],8:["t4","Concrete Methods"],32:["t6","Deprecated 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 class="aboutLanguage"><b>Apache Calcite</b></div> |
| </div> |
| <div class="subNav"> |
| <ul class="navList"> |
| <li><a href="../../../../org/apache/calcite/linq4j/JoinType.html" title="enum in org.apache.calcite.linq4j"><span class="typeNameLink">Prev Class</span></a></li> |
| <li><a href="../../../../org/apache/calcite/linq4j/Lookup.html" title="interface in org.apache.calcite.linq4j"><span class="typeNameLink">Next Class</span></a></li> |
| </ul> |
| <ul class="navList"> |
| <li><a href="../../../../index.html?org/apache/calcite/linq4j/Linq4j.html" target="_top">Frames</a></li> |
| <li><a href="Linq4j.html" target="_top">No Frames</a></li> |
| </ul> |
| <ul class="navList" id="allclasses_navbar_top"> |
| <li><a href="../../../../allclasses-noframe.html">All 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: </li> |
| <li>Nested | </li> |
| <li><a href="#field.summary">Field</a> | </li> |
| <li>Constr | </li> |
| <li><a href="#method.summary">Method</a></li> |
| </ul> |
| <ul class="subNavList"> |
| <li>Detail: </li> |
| <li><a href="#field.detail">Field</a> | </li> |
| <li>Constr | </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.calcite.linq4j</div> |
| <h2 title="Class Linq4j" class="title">Class Linq4j</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>org.apache.calcite.linq4j.Linq4j</li> |
| </ul> |
| </li> |
| </ul> |
| <div class="description"> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <hr> |
| <br> |
| <pre>public abstract class <span class="typeNameLabel">Linq4j</span> |
| extends <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></pre> |
| <div class="block">Utility and factory methods for Linq4j.</div> |
| </li> |
| </ul> |
| </div> |
| <div class="summary"> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <!-- =========== 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"> </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>static <a href="../../../../org/apache/calcite/linq4j/QueryProvider.html" title="interface in org.apache.calcite.linq4j">QueryProvider</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/calcite/linq4j/Linq4j.html#DEFAULT_PROVIDER">DEFAULT_PROVIDER</a></span></code> |
| <div class="block">Query provider that simply executes a <a href="../../../../org/apache/calcite/linq4j/Queryable.html" title="interface in org.apache.calcite.linq4j"><code>Queryable</code></a> by calling its |
| enumerator method; does not attempt optimization.</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code>static <a href="../../../../org/apache/calcite/linq4j/Enumerable.html" title="interface in org.apache.calcite.linq4j">Enumerable</a><?></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/calcite/linq4j/Linq4j.html#EMPTY_ENUMERABLE">EMPTY_ENUMERABLE</a></span></code> </td> |
| </tr> |
| </table> |
| </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"> </span></span><span id="t1" class="tableTab"><span><a href="javascript:show(1);">Static Methods</a></span><span class="tabEnd"> </span></span><span id="t4" class="tableTab"><span><a href="javascript:show(8);">Concrete Methods</a></span><span class="tabEnd"> </span></span><span id="t6" class="tableTab"><span><a href="javascript:show(32);">Deprecated Methods</a></span><span class="tabEnd"> </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>static <T> <a href="../../../../org/apache/calcite/linq4j/Enumerable.html" title="interface in org.apache.calcite.linq4j">Enumerable</a><T></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/calcite/linq4j/Linq4j.html#asEnumerable-java.util.Collection-">asEnumerable</a></span>(<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><T> collection)</code> |
| <div class="block">Adapter that converts an <a href="https://docs.oracle.com/javase/8/docs/api/java/util/Collection.html?is-external=true" title="class or interface in java.util"><code>Collection</code></a> into an <a href="../../../../org/apache/calcite/linq4j/Enumerable.html" title="interface in org.apache.calcite.linq4j"><code>Enumerable</code></a>.</div> |
| </td> |
| </tr> |
| <tr id="i1" class="rowColor"> |
| <td class="colFirst"><code>static <T> <a href="../../../../org/apache/calcite/linq4j/Enumerable.html" title="interface in org.apache.calcite.linq4j">Enumerable</a><T></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/calcite/linq4j/Linq4j.html#asEnumerable-java.lang.Iterable-">asEnumerable</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang">Iterable</a><T> iterable)</code> |
| <div class="block">Adapter that converts an <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang"><code>Iterable</code></a> into an <a href="../../../../org/apache/calcite/linq4j/Enumerable.html" title="interface in org.apache.calcite.linq4j"><code>Enumerable</code></a>.</div> |
| </td> |
| </tr> |
| <tr id="i2" class="altColor"> |
| <td class="colFirst"><code>static <T> <a href="../../../../org/apache/calcite/linq4j/Enumerable.html" title="interface in org.apache.calcite.linq4j">Enumerable</a><T></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/calcite/linq4j/Linq4j.html#asEnumerable-java.util.List-">asEnumerable</a></span>(<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><T> list)</code> |
| <div class="block">Adapter that converts an <a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util"><code>List</code></a> into an <a href="../../../../org/apache/calcite/linq4j/Enumerable.html" title="interface in org.apache.calcite.linq4j"><code>Enumerable</code></a>.</div> |
| </td> |
| </tr> |
| <tr id="i3" class="rowColor"> |
| <td class="colFirst"><code>static <T> <a href="../../../../org/apache/calcite/linq4j/Enumerable.html" title="interface in org.apache.calcite.linq4j">Enumerable</a><T></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/calcite/linq4j/Linq4j.html#asEnumerable-T:A-">asEnumerable</a></span>(T[] ts)</code> |
| <div class="block">Adapter that converts an array into an enumerable.</div> |
| </td> |
| </tr> |
| <tr id="i4" class="altColor"> |
| <td class="colFirst"><code>static <TSource,TResult><br><a href="../../../../org/apache/calcite/linq4j/Enumerable.html" title="interface in org.apache.calcite.linq4j">Enumerable</a><TResult></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/calcite/linq4j/Linq4j.html#cast-java.lang.Iterable-java.lang.Class-">cast</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang">Iterable</a><TSource> source, |
| <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a><TResult> clazz)</code> |
| <div class="block">Converts the elements of a given Iterable to the specified type.</div> |
| </td> |
| </tr> |
| <tr id="i5" class="rowColor"> |
| <td class="colFirst"><code>static <E> <a href="../../../../org/apache/calcite/linq4j/Enumerable.html" title="interface in org.apache.calcite.linq4j">Enumerable</a><E></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/calcite/linq4j/Linq4j.html#concat-java.util.List-">concat</a></span>(<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><<a href="../../../../org/apache/calcite/linq4j/Enumerable.html" title="interface in org.apache.calcite.linq4j">Enumerable</a><E>> enumerableList)</code> |
| <div class="block">Concatenates two or more <a href="../../../../org/apache/calcite/linq4j/Enumerable.html" title="interface in org.apache.calcite.linq4j"><code>Enumerable</code></a>s to form a composite |
| enumerable that contains the union of their elements.</div> |
| </td> |
| </tr> |
| <tr id="i6" class="altColor"> |
| <td class="colFirst"><code>static <T> <a href="../../../../org/apache/calcite/linq4j/Enumerable.html" title="interface in org.apache.calcite.linq4j">Enumerable</a><T></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/calcite/linq4j/Linq4j.html#emptyEnumerable--">emptyEnumerable</a></span>()</code> |
| <div class="block">Returns an <a href="../../../../org/apache/calcite/linq4j/Enumerable.html" title="interface in org.apache.calcite.linq4j"><code>Enumerable</code></a> that has no elements.</div> |
| </td> |
| </tr> |
| <tr id="i7" class="rowColor"> |
| <td class="colFirst"><code>static <T> <a href="../../../../org/apache/calcite/linq4j/Enumerator.html" title="interface in org.apache.calcite.linq4j">Enumerator</a><T></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/calcite/linq4j/Linq4j.html#emptyEnumerator--">emptyEnumerator</a></span>()</code> |
| <div class="block">Returns an <a href="../../../../org/apache/calcite/linq4j/Enumerator.html" title="interface in org.apache.calcite.linq4j"><code>Enumerator</code></a> that has no elements.</div> |
| </td> |
| </tr> |
| <tr id="i8" class="altColor"> |
| <td class="colFirst"><code>static <V> <a href="../../../../org/apache/calcite/linq4j/Enumerator.html" title="interface in org.apache.calcite.linq4j">Enumerator</a><V></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/calcite/linq4j/Linq4j.html#enumerator-java.util.Collection-">enumerator</a></span>(<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><? extends V> values)</code> |
| <div class="block">Adapter that converts a collection into an enumerator.</div> |
| </td> |
| </tr> |
| <tr id="i9" class="rowColor"> |
| <td class="colFirst"><code>static <T> <a href="https://docs.oracle.com/javase/8/docs/api/java/util/Iterator.html?is-external=true" title="class or interface in java.util">Iterator</a><T></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/calcite/linq4j/Linq4j.html#enumeratorIterator-org.apache.calcite.linq4j.Enumerator-">enumeratorIterator</a></span>(<a href="../../../../org/apache/calcite/linq4j/Enumerator.html" title="interface in org.apache.calcite.linq4j">Enumerator</a><T> enumerator)</code> |
| <div class="block">Adapter that converts an enumerator into an iterator.</div> |
| </td> |
| </tr> |
| <tr id="i10" class="altColor"> |
| <td class="colFirst"><code>static <T> boolean</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/calcite/linq4j/Linq4j.html#equals-T-T-">equals</a></span>(T t0, |
| T t1)</code> |
| <div class="block"><span class="deprecatedLabel">Deprecated.</span> </div> |
| </td> |
| </tr> |
| <tr id="i11" class="rowColor"> |
| <td class="colFirst"><code>static <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/reflect/Method.html?is-external=true" title="class or interface in java.lang.reflect">Method</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/calcite/linq4j/Linq4j.html#getMethod-java.lang.String-java.lang.String-java.lang.Class...-">getMethod</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> className, |
| <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> methodName, |
| <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a>... parameterTypes)</code> </td> |
| </tr> |
| <tr id="i12" class="altColor"> |
| <td class="colFirst"><code>static <T> <a href="../../../../org/apache/calcite/linq4j/Enumerator.html" title="interface in org.apache.calcite.linq4j">Enumerator</a><T></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/calcite/linq4j/Linq4j.html#iterableEnumerator-java.lang.Iterable-">iterableEnumerator</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang">Iterable</a><? extends T> iterable)</code> |
| <div class="block">Adapter that converts an iterable into an enumerator.</div> |
| </td> |
| </tr> |
| <tr id="i13" class="rowColor"> |
| <td class="colFirst"><code>static <TSource,TResult><br><a href="../../../../org/apache/calcite/linq4j/Enumerable.html" title="interface in org.apache.calcite.linq4j">Enumerable</a><TResult></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/calcite/linq4j/Linq4j.html#ofType-java.lang.Iterable-java.lang.Class-">ofType</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang">Iterable</a><TSource> source, |
| <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a><TResult> clazz)</code> |
| <div class="block">Returns elements of a given <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang"><code>Iterable</code></a> that are of the specified |
| type.</div> |
| </td> |
| </tr> |
| <tr id="i14" class="altColor"> |
| <td class="colFirst"><code>static <T> <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang">Iterable</a><<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><T>></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/calcite/linq4j/Linq4j.html#product-java.lang.Iterable-">product</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang">Iterable</a><? extends <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang">Iterable</a><T>> iterables)</code> |
| <div class="block">Returns the cartesian product of an iterable of iterables.</div> |
| </td> |
| </tr> |
| <tr id="i15" class="rowColor"> |
| <td class="colFirst"><code>static <T> <a href="../../../../org/apache/calcite/linq4j/Enumerator.html" title="interface in org.apache.calcite.linq4j">Enumerator</a><<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><T>></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/calcite/linq4j/Linq4j.html#product-java.util.List-">product</a></span>(<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><<a href="../../../../org/apache/calcite/linq4j/Enumerator.html" title="interface in org.apache.calcite.linq4j">Enumerator</a><T>> enumerators)</code> |
| <div class="block">Returns an enumerator that is the cartesian product of the given |
| enumerators.</div> |
| </td> |
| </tr> |
| <tr id="i16" class="altColor"> |
| <td class="colFirst"><code>static <T> T</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/calcite/linq4j/Linq4j.html#requireNonNull-T-">requireNonNull</a></span>(T o)</code> |
| <div class="block"><span class="deprecatedLabel">Deprecated.</span> </div> |
| </td> |
| </tr> |
| <tr id="i17" class="rowColor"> |
| <td class="colFirst"><code>static <T> <a href="../../../../org/apache/calcite/linq4j/Enumerable.html" title="interface in org.apache.calcite.linq4j">Enumerable</a><T></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/calcite/linq4j/Linq4j.html#singletonEnumerable-T-">singletonEnumerable</a></span>(T element)</code> |
| <div class="block">Returns an <a href="../../../../org/apache/calcite/linq4j/Enumerable.html" title="interface in org.apache.calcite.linq4j"><code>Enumerable</code></a> that has one element.</div> |
| </td> |
| </tr> |
| <tr id="i18" class="altColor"> |
| <td class="colFirst"><code>static <T> <a href="../../../../org/apache/calcite/linq4j/Enumerator.html" title="interface in org.apache.calcite.linq4j">Enumerator</a><T></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/calcite/linq4j/Linq4j.html#singletonEnumerator-T-">singletonEnumerator</a></span>(T element)</code> |
| <div class="block">Returns an <a href="../../../../org/apache/calcite/linq4j/Enumerator.html" title="interface in org.apache.calcite.linq4j"><code>Enumerator</code></a> that has one element.</div> |
| </td> |
| </tr> |
| <tr id="i19" class="rowColor"> |
| <td class="colFirst"><code>static <T> <a href="../../../../org/apache/calcite/linq4j/Enumerator.html" title="interface in org.apache.calcite.linq4j">Enumerator</a><T></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/calcite/linq4j/Linq4j.html#singletonNullEnumerator--">singletonNullEnumerator</a></span>()</code> |
| <div class="block">Returns an <a href="../../../../org/apache/calcite/linq4j/Enumerator.html" title="interface in org.apache.calcite.linq4j"><code>Enumerator</code></a> that has one null element.</div> |
| </td> |
| </tr> |
| <tr id="i20" class="altColor"> |
| <td class="colFirst"><code>static <F,E> <a href="../../../../org/apache/calcite/linq4j/Enumerator.html" title="interface in org.apache.calcite.linq4j">Enumerator</a><E></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/calcite/linq4j/Linq4j.html#transform-org.apache.calcite.linq4j.Enumerator-org.apache.calcite.linq4j.function.Function1-">transform</a></span>(<a href="../../../../org/apache/calcite/linq4j/Enumerator.html" title="interface in org.apache.calcite.linq4j">Enumerator</a><F> enumerator, |
| <a href="../../../../org/apache/calcite/linq4j/function/Function1.html" title="interface in org.apache.calcite.linq4j.function">Function1</a><F,E> func)</code> |
| <div class="block">Applies a function to each element of an Enumerator.</div> |
| </td> |
| </tr> |
| </table> |
| <ul class="blockList"> |
| <li class="blockList"><a name="methods.inherited.from.class.java.lang.Object"> |
| <!-- --> |
| </a> |
| <h3>Methods inherited from class 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="DEFAULT_PROVIDER"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>DEFAULT_PROVIDER</h4> |
| <pre>public static final <a href="../../../../org/apache/calcite/linq4j/QueryProvider.html" title="interface in org.apache.calcite.linq4j">QueryProvider</a> DEFAULT_PROVIDER</pre> |
| <div class="block">Query provider that simply executes a <a href="../../../../org/apache/calcite/linq4j/Queryable.html" title="interface in org.apache.calcite.linq4j"><code>Queryable</code></a> by calling its |
| enumerator method; does not attempt optimization.</div> |
| </li> |
| </ul> |
| <a name="EMPTY_ENUMERABLE"> |
| <!-- --> |
| </a> |
| <ul class="blockListLast"> |
| <li class="blockList"> |
| <h4>EMPTY_ENUMERABLE</h4> |
| <pre>public static final <a href="../../../../org/apache/calcite/linq4j/Enumerable.html" title="interface in org.apache.calcite.linq4j">Enumerable</a><?> EMPTY_ENUMERABLE</pre> |
| </li> |
| </ul> |
| </li> |
| </ul> |
| <!-- ============ METHOD DETAIL ========== --> |
| <ul class="blockList"> |
| <li class="blockList"><a name="method.detail"> |
| <!-- --> |
| </a> |
| <h3>Method Detail</h3> |
| <a name="getMethod-java.lang.String-java.lang.String-java.lang.Class...-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getMethod</h4> |
| <pre>public static <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/reflect/Method.html?is-external=true" title="class or interface in java.lang.reflect">Method</a> getMethod(<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> className, |
| <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> methodName, |
| <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a>... parameterTypes)</pre> |
| </li> |
| </ul> |
| <a name="enumeratorIterator-org.apache.calcite.linq4j.Enumerator-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>enumeratorIterator</h4> |
| <pre>public static <T> <a href="https://docs.oracle.com/javase/8/docs/api/java/util/Iterator.html?is-external=true" title="class or interface in java.util">Iterator</a><T> enumeratorIterator(<a href="../../../../org/apache/calcite/linq4j/Enumerator.html" title="interface in org.apache.calcite.linq4j">Enumerator</a><T> enumerator)</pre> |
| <div class="block">Adapter that converts an enumerator into an iterator. |
| |
| <p><b>WARNING</b>: The iterator returned by this method does not call |
| <a href="../../../../org/apache/calcite/linq4j/Enumerator.html#close--"><code>Enumerator.close()</code></a>, so it is not safe to |
| use with an enumerator that allocates resources.</p></div> |
| <dl> |
| <dt><span class="paramLabel">Type Parameters:</span></dt> |
| <dd><code>T</code> - Element type</dd> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>enumerator</code> - Enumerator</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>Iterator</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="iterableEnumerator-java.lang.Iterable-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>iterableEnumerator</h4> |
| <pre>public static <T> <a href="../../../../org/apache/calcite/linq4j/Enumerator.html" title="interface in org.apache.calcite.linq4j">Enumerator</a><T> iterableEnumerator(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang">Iterable</a><? extends T> iterable)</pre> |
| <div class="block">Adapter that converts an iterable into an enumerator.</div> |
| <dl> |
| <dt><span class="paramLabel">Type Parameters:</span></dt> |
| <dd><code>T</code> - Element type</dd> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>iterable</code> - Iterable</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>enumerator</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="asEnumerable-java.util.List-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>asEnumerable</h4> |
| <pre>public static <T> <a href="../../../../org/apache/calcite/linq4j/Enumerable.html" title="interface in org.apache.calcite.linq4j">Enumerable</a><T> asEnumerable(<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><T> list)</pre> |
| <div class="block">Adapter that converts an <a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util"><code>List</code></a> into an <a href="../../../../org/apache/calcite/linq4j/Enumerable.html" title="interface in org.apache.calcite.linq4j"><code>Enumerable</code></a>.</div> |
| <dl> |
| <dt><span class="paramLabel">Type Parameters:</span></dt> |
| <dd><code>T</code> - Element type</dd> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>list</code> - List</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>enumerable</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="asEnumerable-java.util.Collection-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>asEnumerable</h4> |
| <pre>public static <T> <a href="../../../../org/apache/calcite/linq4j/Enumerable.html" title="interface in org.apache.calcite.linq4j">Enumerable</a><T> asEnumerable(<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><T> collection)</pre> |
| <div class="block">Adapter that converts an <a href="https://docs.oracle.com/javase/8/docs/api/java/util/Collection.html?is-external=true" title="class or interface in java.util"><code>Collection</code></a> into an <a href="../../../../org/apache/calcite/linq4j/Enumerable.html" title="interface in org.apache.calcite.linq4j"><code>Enumerable</code></a>. |
| |
| <p>It uses more efficient implementations if the iterable happens to |
| be a <a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util"><code>List</code></a>.</p></div> |
| <dl> |
| <dt><span class="paramLabel">Type Parameters:</span></dt> |
| <dd><code>T</code> - Element type</dd> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>collection</code> - Collection</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>enumerable</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="asEnumerable-java.lang.Iterable-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>asEnumerable</h4> |
| <pre>public static <T> <a href="../../../../org/apache/calcite/linq4j/Enumerable.html" title="interface in org.apache.calcite.linq4j">Enumerable</a><T> asEnumerable(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang">Iterable</a><T> iterable)</pre> |
| <div class="block">Adapter that converts an <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang"><code>Iterable</code></a> into an <a href="../../../../org/apache/calcite/linq4j/Enumerable.html" title="interface in org.apache.calcite.linq4j"><code>Enumerable</code></a>. |
| |
| <p>It uses more efficient implementations if the iterable happens to |
| be a <a href="https://docs.oracle.com/javase/8/docs/api/java/util/Collection.html?is-external=true" title="class or interface in java.util"><code>Collection</code></a> or a <a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util"><code>List</code></a>.</p></div> |
| <dl> |
| <dt><span class="paramLabel">Type Parameters:</span></dt> |
| <dd><code>T</code> - Element type</dd> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>iterable</code> - Iterable</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>enumerable</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="asEnumerable-java.lang.Object:A-"> |
| <!-- --> |
| </a><a name="asEnumerable-T:A-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>asEnumerable</h4> |
| <pre>public static <T> <a href="../../../../org/apache/calcite/linq4j/Enumerable.html" title="interface in org.apache.calcite.linq4j">Enumerable</a><T> asEnumerable(T[] ts)</pre> |
| <div class="block">Adapter that converts an array into an enumerable.</div> |
| <dl> |
| <dt><span class="paramLabel">Type Parameters:</span></dt> |
| <dd><code>T</code> - Element type</dd> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>ts</code> - Array</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>enumerable</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="enumerator-java.util.Collection-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>enumerator</h4> |
| <pre>public static <V> <a href="../../../../org/apache/calcite/linq4j/Enumerator.html" title="interface in org.apache.calcite.linq4j">Enumerator</a><V> enumerator(<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><? extends V> values)</pre> |
| <div class="block">Adapter that converts a collection into an enumerator.</div> |
| <dl> |
| <dt><span class="paramLabel">Type Parameters:</span></dt> |
| <dd><code>V</code> - Element type</dd> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>values</code> - Collection</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>Enumerator over the collection</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="transform-org.apache.calcite.linq4j.Enumerator-org.apache.calcite.linq4j.function.Function1-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>transform</h4> |
| <pre>public static <F,E> <a href="../../../../org/apache/calcite/linq4j/Enumerator.html" title="interface in org.apache.calcite.linq4j">Enumerator</a><E> transform(<a href="../../../../org/apache/calcite/linq4j/Enumerator.html" title="interface in org.apache.calcite.linq4j">Enumerator</a><F> enumerator, |
| <a href="../../../../org/apache/calcite/linq4j/function/Function1.html" title="interface in org.apache.calcite.linq4j.function">Function1</a><F,E> func)</pre> |
| <div class="block">Applies a function to each element of an Enumerator.</div> |
| <dl> |
| <dt><span class="paramLabel">Type Parameters:</span></dt> |
| <dd><code>F</code> - Backing element type</dd> |
| <dd><code>E</code> - Element type</dd> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>enumerator</code> - Backing enumerator</dd> |
| <dd><code>func</code> - Transform function</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>Enumerator</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="cast-java.lang.Iterable-java.lang.Class-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>cast</h4> |
| <pre>public static <TSource,TResult> <a href="../../../../org/apache/calcite/linq4j/Enumerable.html" title="interface in org.apache.calcite.linq4j">Enumerable</a><TResult> cast(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang">Iterable</a><TSource> source, |
| <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a><TResult> clazz)</pre> |
| <div class="block">Converts the elements of a given Iterable to the specified type. |
| |
| <p>This method is implemented by using deferred execution. The immediate |
| return value is an object that stores all the information that is |
| required to perform the action. The query represented by this method is |
| not executed until the object is enumerated either by calling its |
| <a href="../../../../org/apache/calcite/linq4j/RawEnumerable.html#enumerator--"><code>RawEnumerable.enumerator()</code></a> method directly or by using |
| <code>for (... in ...)</code>. |
| |
| <p>Since standard Java <a href="https://docs.oracle.com/javase/8/docs/api/java/util/Collection.html?is-external=true" title="class or interface in java.util"><code>Collection</code></a> objects implement the |
| <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang"><code>Iterable</code></a> interface, the <code>cast</code> method enables the standard |
| query operators to be invoked on collections |
| (including <a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util"><code>List</code></a> and <a href="https://docs.oracle.com/javase/8/docs/api/java/util/Set.html?is-external=true" title="class or interface in java.util"><code>Set</code></a>) by supplying |
| the necessary type information. For example, <a href="https://docs.oracle.com/javase/8/docs/api/java/util/ArrayList.html?is-external=true" title="class or interface in java.util"><code>ArrayList</code></a> does not |
| implement <a href="../../../../org/apache/calcite/linq4j/Enumerable.html" title="interface in org.apache.calcite.linq4j"><code>Enumerable</code></a><F>, but you can invoke |
| |
| <blockquote><code>Linq4j.cast(list, Integer.class)</code></blockquote> |
| |
| <p>to convert the list of an enumerable that can be queried using the |
| standard query operators. |
| |
| <p>If an element cannot be cast to type <TResult>, this method will |
| throw a <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/ClassCastException.html?is-external=true" title="class or interface in java.lang"><code>ClassCastException</code></a>. To obtain only those elements that |
| can be cast to type TResult, use the <a href="../../../../org/apache/calcite/linq4j/Linq4j.html#ofType-java.lang.Iterable-java.lang.Class-"><code>ofType(java.lang.Iterable<TSource>, java.lang.Class<TResult>)</code></a> method instead.</div> |
| <dl> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><a href="../../../../org/apache/calcite/linq4j/ExtendedEnumerable.html#cast-java.lang.Class-"><code>ExtendedEnumerable.cast(Class)</code></a>, |
| <a href="../../../../org/apache/calcite/linq4j/Linq4j.html#ofType-java.lang.Iterable-java.lang.Class-"><code>ofType(java.lang.Iterable<TSource>, java.lang.Class<TResult>)</code></a>, |
| <a href="../../../../org/apache/calcite/linq4j/Linq4j.html#asEnumerable-java.lang.Iterable-"><code>asEnumerable(Iterable)</code></a></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="ofType-java.lang.Iterable-java.lang.Class-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>ofType</h4> |
| <pre>public static <TSource,TResult> <a href="../../../../org/apache/calcite/linq4j/Enumerable.html" title="interface in org.apache.calcite.linq4j">Enumerable</a><TResult> ofType(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang">Iterable</a><TSource> source, |
| <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a><TResult> clazz)</pre> |
| <div class="block">Returns elements of a given <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang"><code>Iterable</code></a> that are of the specified |
| type. |
| |
| <p>This method is implemented by using deferred execution. The immediate |
| return value is an object that stores all the information that is |
| required to perform the action. The query represented by this method is |
| not executed until the object is enumerated either by calling its |
| <a href="../../../../org/apache/calcite/linq4j/RawEnumerable.html#enumerator--"><code>RawEnumerable.enumerator()</code></a> method directly or by using |
| <code>for (... in ...)</code>. |
| |
| <p>The <code>ofType</code> method returns only those elements in source that |
| can be cast to type TResult. To instead receive an exception if an |
| element cannot be cast to type TResult, use |
| <a href="../../../../org/apache/calcite/linq4j/Linq4j.html#cast-java.lang.Iterable-java.lang.Class-"><code>cast(Iterable, Class)</code></a>.</p> |
| |
| <p>Since standard Java <a href="https://docs.oracle.com/javase/8/docs/api/java/util/Collection.html?is-external=true" title="class or interface in java.util"><code>Collection</code></a> objects implement the |
| <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang"><code>Iterable</code></a> interface, the <code>cast</code> method enables the standard |
| query operators to be invoked on collections |
| (including <a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util"><code>List</code></a> and <a href="https://docs.oracle.com/javase/8/docs/api/java/util/Set.html?is-external=true" title="class or interface in java.util"><code>Set</code></a>) by supplying |
| the necessary type information. For example, <a href="https://docs.oracle.com/javase/8/docs/api/java/util/ArrayList.html?is-external=true" title="class or interface in java.util"><code>ArrayList</code></a> does not |
| implement <a href="../../../../org/apache/calcite/linq4j/Enumerable.html" title="interface in org.apache.calcite.linq4j"><code>Enumerable</code></a><F>, but you can invoke |
| |
| <blockquote><code>Linq4j.ofType(list, Integer.class)</code></blockquote> |
| |
| <p>to convert the list of an enumerable that can be queried using the |
| standard query operators.</div> |
| <dl> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><a href="../../../../org/apache/calcite/linq4j/ExtendedEnumerable.html#cast-java.lang.Class-"><code>ExtendedEnumerable.cast(Class)</code></a>, |
| <a href="../../../../org/apache/calcite/linq4j/Linq4j.html#cast-java.lang.Iterable-java.lang.Class-"><code>cast(java.lang.Iterable<TSource>, java.lang.Class<TResult>)</code></a></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="singletonEnumerable-java.lang.Object-"> |
| <!-- --> |
| </a><a name="singletonEnumerable-T-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>singletonEnumerable</h4> |
| <pre>public static <T> <a href="../../../../org/apache/calcite/linq4j/Enumerable.html" title="interface in org.apache.calcite.linq4j">Enumerable</a><T> singletonEnumerable(T element)</pre> |
| <div class="block">Returns an <a href="../../../../org/apache/calcite/linq4j/Enumerable.html" title="interface in org.apache.calcite.linq4j"><code>Enumerable</code></a> that has one element.</div> |
| <dl> |
| <dt><span class="paramLabel">Type Parameters:</span></dt> |
| <dd><code>T</code> - Element type</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>Singleton enumerable</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="singletonEnumerator-java.lang.Object-"> |
| <!-- --> |
| </a><a name="singletonEnumerator-T-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>singletonEnumerator</h4> |
| <pre>public static <T> <a href="../../../../org/apache/calcite/linq4j/Enumerator.html" title="interface in org.apache.calcite.linq4j">Enumerator</a><T> singletonEnumerator(T element)</pre> |
| <div class="block">Returns an <a href="../../../../org/apache/calcite/linq4j/Enumerator.html" title="interface in org.apache.calcite.linq4j"><code>Enumerator</code></a> that has one element.</div> |
| <dl> |
| <dt><span class="paramLabel">Type Parameters:</span></dt> |
| <dd><code>T</code> - Element type</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>Singleton enumerator</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="singletonNullEnumerator--"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>singletonNullEnumerator</h4> |
| <pre>public static <T> <a href="../../../../org/apache/calcite/linq4j/Enumerator.html" title="interface in org.apache.calcite.linq4j">Enumerator</a><T> singletonNullEnumerator()</pre> |
| <div class="block">Returns an <a href="../../../../org/apache/calcite/linq4j/Enumerator.html" title="interface in org.apache.calcite.linq4j"><code>Enumerator</code></a> that has one null element.</div> |
| <dl> |
| <dt><span class="paramLabel">Type Parameters:</span></dt> |
| <dd><code>T</code> - Element type</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>Singleton enumerator</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="emptyEnumerable--"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>emptyEnumerable</h4> |
| <pre>public static <T> <a href="../../../../org/apache/calcite/linq4j/Enumerable.html" title="interface in org.apache.calcite.linq4j">Enumerable</a><T> emptyEnumerable()</pre> |
| <div class="block">Returns an <a href="../../../../org/apache/calcite/linq4j/Enumerable.html" title="interface in org.apache.calcite.linq4j"><code>Enumerable</code></a> that has no elements.</div> |
| <dl> |
| <dt><span class="paramLabel">Type Parameters:</span></dt> |
| <dd><code>T</code> - Element type</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>Empty enumerable</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="emptyEnumerator--"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>emptyEnumerator</h4> |
| <pre>public static <T> <a href="../../../../org/apache/calcite/linq4j/Enumerator.html" title="interface in org.apache.calcite.linq4j">Enumerator</a><T> emptyEnumerator()</pre> |
| <div class="block">Returns an <a href="../../../../org/apache/calcite/linq4j/Enumerator.html" title="interface in org.apache.calcite.linq4j"><code>Enumerator</code></a> that has no elements.</div> |
| <dl> |
| <dt><span class="paramLabel">Type Parameters:</span></dt> |
| <dd><code>T</code> - Element type</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>Empty enumerator</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="concat-java.util.List-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>concat</h4> |
| <pre>public static <E> <a href="../../../../org/apache/calcite/linq4j/Enumerable.html" title="interface in org.apache.calcite.linq4j">Enumerable</a><E> concat(<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><<a href="../../../../org/apache/calcite/linq4j/Enumerable.html" title="interface in org.apache.calcite.linq4j">Enumerable</a><E>> enumerableList)</pre> |
| <div class="block">Concatenates two or more <a href="../../../../org/apache/calcite/linq4j/Enumerable.html" title="interface in org.apache.calcite.linq4j"><code>Enumerable</code></a>s to form a composite |
| enumerable that contains the union of their elements.</div> |
| <dl> |
| <dt><span class="paramLabel">Type Parameters:</span></dt> |
| <dd><code>E</code> - Element type</dd> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>enumerableList</code> - List of enumerable objects</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>Composite enumerator</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="product-java.util.List-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>product</h4> |
| <pre>public static <T> <a href="../../../../org/apache/calcite/linq4j/Enumerator.html" title="interface in org.apache.calcite.linq4j">Enumerator</a><<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><T>> product(<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><<a href="../../../../org/apache/calcite/linq4j/Enumerator.html" title="interface in org.apache.calcite.linq4j">Enumerator</a><T>> enumerators)</pre> |
| <div class="block">Returns an enumerator that is the cartesian product of the given |
| enumerators. |
| |
| <p>For example, given enumerator A that returns {"a", "b", "c"} and |
| enumerator B that returns {"x", "y"}, product(List(A, B)) will return |
| {List("a", "x"), List("a", "y"), |
| List("b", "x"), List("b", "y"), |
| List("c", "x"), List("c", "y")}.</p> |
| |
| <p>Notice that the cardinality of the result is the product of the |
| cardinality of the inputs. The enumerators A and B have 3 and 2 |
| elements respectively, and the result has 3 * 2 = 6 elements. |
| This is always the case. In |
| particular, if any of the enumerators is empty, the result is empty.</p></div> |
| <dl> |
| <dt><span class="paramLabel">Type Parameters:</span></dt> |
| <dd><code>T</code> - Element type</dd> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>enumerators</code> - List of enumerators</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>Enumerator over the cartesian product</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="product-java.lang.Iterable-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>product</h4> |
| <pre>public static <T> <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang">Iterable</a><<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><T>> product(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang">Iterable</a><? extends <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang">Iterable</a><T>> iterables)</pre> |
| <div class="block">Returns the cartesian product of an iterable of iterables.</div> |
| </li> |
| </ul> |
| <a name="equals-java.lang.Object-java.lang.Object-"> |
| <!-- --> |
| </a><a name="equals-T-T-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>equals</h4> |
| <pre><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Deprecated.html?is-external=true" title="class or interface in java.lang">@Deprecated</a> |
| public static <T> boolean equals(T t0, |
| T t1)</pre> |
| <div class="block"><span class="deprecatedLabel">Deprecated.</span> </div> |
| <div class="block">Returns whether the arguments are equal to each other. |
| |
| <p>Equivalent to <a href="https://docs.oracle.com/javase/8/docs/api/java/util/Objects.html?is-external=true#equals-java.lang.Object-java.lang.Object-" title="class or interface in java.util"><code>Objects.equals(java.lang.Object, java.lang.Object)</code></a> in JDK 1.7 and above.</div> |
| </li> |
| </ul> |
| <a name="requireNonNull-java.lang.Object-"> |
| <!-- --> |
| </a><a name="requireNonNull-T-"> |
| <!-- --> |
| </a> |
| <ul class="blockListLast"> |
| <li class="blockList"> |
| <h4>requireNonNull</h4> |
| <pre><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Deprecated.html?is-external=true" title="class or interface in java.lang">@Deprecated</a> |
| public static <T> T requireNonNull(T o)</pre> |
| <div class="block"><span class="deprecatedLabel">Deprecated.</span> </div> |
| <div class="block">Throws <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/NullPointerException.html?is-external=true" title="class or interface in java.lang"><code>NullPointerException</code></a> if argument is null, otherwise |
| returns argument. |
| |
| <p>Equivalent to <a href="https://docs.oracle.com/javase/8/docs/api/java/util/Objects.html?is-external=true#requireNonNull-T-" title="class or interface in java.util"><code>Objects.requireNonNull(T)</code></a> in JDK 1.7 and |
| above.</div> |
| </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 class="aboutLanguage"><b>Apache Calcite</b></div> |
| </div> |
| <div class="subNav"> |
| <ul class="navList"> |
| <li><a href="../../../../org/apache/calcite/linq4j/JoinType.html" title="enum in org.apache.calcite.linq4j"><span class="typeNameLink">Prev Class</span></a></li> |
| <li><a href="../../../../org/apache/calcite/linq4j/Lookup.html" title="interface in org.apache.calcite.linq4j"><span class="typeNameLink">Next Class</span></a></li> |
| </ul> |
| <ul class="navList"> |
| <li><a href="../../../../index.html?org/apache/calcite/linq4j/Linq4j.html" target="_top">Frames</a></li> |
| <li><a href="Linq4j.html" target="_top">No Frames</a></li> |
| </ul> |
| <ul class="navList" id="allclasses_navbar_bottom"> |
| <li><a href="../../../../allclasses-noframe.html">All 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: </li> |
| <li>Nested | </li> |
| <li><a href="#field.summary">Field</a> | </li> |
| <li>Constr | </li> |
| <li><a href="#method.summary">Method</a></li> |
| </ul> |
| <ul class="subNavList"> |
| <li>Detail: </li> |
| <li><a href="#field.detail">Field</a> | </li> |
| <li>Constr | </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 © 2012-2020 Apache Software Foundation. All Rights Reserved.</small></p> |
| </body> |
| </html> |