| <!DOCTYPE HTML> |
| <!-- NewPage --> |
| <html lang="en"> |
| <head> |
| <!-- Generated by javadoc --> |
| <title>Functions (Apache Calcite calcite API)</title> |
| <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> |
| <link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="Style"> |
| <link rel="stylesheet" type="text/css" href="../../../../../jquery/jquery-ui.css" title="Style"> |
| <script type="text/javascript" src="../../../../../script.js"></script> |
| <script type="text/javascript" src="../../../../../jquery/jszip/dist/jszip.min.js"></script> |
| <script type="text/javascript" src="../../../../../jquery/jszip-utils/dist/jszip-utils.min.js"></script> |
| <!--[if IE]> |
| <script type="text/javascript" src="../../../../../jquery/jszip-utils/dist/jszip-utils-ie.min.js"></script> |
| <![endif]--> |
| <script type="text/javascript" src="../../../../../jquery/jquery-3.3.1.js"></script> |
| <script type="text/javascript" src="../../../../../jquery/jquery-migrate-3.0.1.js"></script> |
| <script type="text/javascript" src="../../../../../jquery/jquery-ui.js"></script> |
| </head> |
| <body> |
| <script type="text/javascript"><!-- |
| try { |
| if (location.href.indexOf('is-external=true') == -1) { |
| parent.document.title="Functions (Apache Calcite calcite API)"; |
| } |
| } |
| catch(err) { |
| } |
| //--> |
| var data = {"i0":41,"i1":9,"i2":9,"i3":9,"i4":9,"i5":41,"i6":9,"i7":9,"i8":9,"i9":9,"i10":9,"i11":9,"i12":9,"i13":9,"i14":9,"i15":9,"i16":9,"i17":9,"i18":9,"i19":9,"i20":9,"i21":9,"i22":9,"i23":9,"i24":9,"i25":9,"i26":9,"i27":9,"i28":9,"i29":9,"i30":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"; |
| var pathtoroot = "../../../../../"; |
| var useModuleDirectories = true; |
| loadScripts(document, 'script');</script> |
| <noscript> |
| <div>JavaScript is disabled on your browser.</div> |
| </noscript> |
| <header role="banner"> |
| <nav role="navigation"> |
| <div class="fixedNav"> |
| <!-- ========= START OF TOP NAVBAR ======= --> |
| <div class="topNav"><a id="navbar.top"> |
| <!-- --> |
| </a> |
| <div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div> |
| <a id="navbar.top.firstrow"> |
| <!-- --> |
| </a> |
| <ul class="navList" title="Navigation"> |
| <li><a href="../../../../../index.html">Overview</a></li> |
| <li><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" id="allclasses_navbar_top"> |
| <li><a href="../../../../../allclasses.html">All Classes</a></li> |
| </ul> |
| <ul class="navListSearch"> |
| <li><label for="search">SEARCH:</label> |
| <input type="text" id="search" value="search" disabled="disabled"> |
| <input type="reset" id="reset" value="reset" disabled="disabled"> |
| </li> |
| </ul> |
| <div> |
| <script type="text/javascript"><!-- |
| allClassesLink = document.getElementById("allclasses_navbar_top"); |
| if(window==top) { |
| allClassesLink.style.display = "block"; |
| } |
| else { |
| allClassesLink.style.display = "none"; |
| } |
| //--> |
| </script> |
| <noscript> |
| <div>JavaScript is disabled on your browser.</div> |
| </noscript> |
| </div> |
| <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 id="skip.navbar.top"> |
| <!-- --> |
| </a></div> |
| <!-- ========= END OF TOP NAVBAR ========= --> |
| </div> |
| <div class="navPadding"> </div> |
| <script type="text/javascript"><!-- |
| $('.navPadding').css('padding-top', $('.fixedNav').css("height")); |
| //--> |
| </script> |
| </nav> |
| </header> |
| <!-- ======== START OF CLASS DATA ======== --> |
| <main role="main"> |
| <div class="header"> |
| <div class="subTitle"><span class="packageLabelInType">Package</span> <a href="package-summary.html">org.apache.calcite.linq4j.function</a></div> |
| <h2 title="Class Functions" class="title">Class Functions</h2> |
| </div> |
| <div class="contentContainer"> |
| <ul class="inheritance"> |
| <li><a href="https://docs.oracle.com/javase/9/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang" class="externalLink">java.lang.Object</a></li> |
| <li> |
| <ul class="inheritance"> |
| <li>org.apache.calcite.linq4j.function.Functions</li> |
| </ul> |
| </li> |
| </ul> |
| <div class="description"> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <hr> |
| <pre>public abstract class <span class="typeNameLabel">Functions</span> |
| extends <a href="https://docs.oracle.com/javase/9/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang" class="externalLink">Object</a></pre> |
| <div class="block">Utilities relating to functions.</div> |
| </li> |
| </ul> |
| </div> |
| <div class="summary"> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <!-- =========== FIELD SUMMARY =========== --> |
| <section role="region"> |
| <ul class="blockList"> |
| <li class="blockList"><a id="field.summary"> |
| <!-- --> |
| </a> |
| <h3>Field Summary</h3> |
| <table class="memberSummary"> |
| <caption><span>Fields</span><span class="tabEnd"> </span></caption> |
| <tr> |
| <th class="colFirst" scope="col">Modifier and Type</th> |
| <th class="colSecond" scope="col">Field</th> |
| <th class="colLast" scope="col">Description</th> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code>static <a href="https://docs.oracle.com/javase/9/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util" class="externalLink">Map</a><<a href="https://docs.oracle.com/javase/9/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang" class="externalLink">Class</a><? extends <a href="Function.html" title="interface in org.apache.calcite.linq4j.function">Function</a>>,​<a href="https://docs.oracle.com/javase/9/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang" class="externalLink">Class</a>></code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#FUNCTION_RESULT_TYPES">FUNCTION_RESULT_TYPES</a></span></code></th> |
| <td class="colLast"> </td> |
| </tr> |
| </table> |
| </li> |
| </ul> |
| </section> |
| <!-- ========== METHOD SUMMARY =========== --> |
| <section role="region"> |
| <ul class="blockList"> |
| <li class="blockList"><a id="method.summary"> |
| <!-- --> |
| </a> |
| <h3>Method Summary</h3> |
| <table class="memberSummary"> |
| <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="colSecond" scope="col">Method</th> |
| <th class="colLast" scope="col">Description</th> |
| </tr> |
| <tr id="i0" class="altColor"> |
| <td class="colFirst"><code>static <T1,​R><br><a href="https://docs.oracle.com/javase/9/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util" class="externalLink">List</a><R></code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#adapt(java.util.List,org.apache.calcite.linq4j.function.Function1)">adapt</a></span>​(<a href="https://docs.oracle.com/javase/9/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util" class="externalLink">List</a><T1> list, |
| <a href="Function1.html" title="interface in org.apache.calcite.linq4j.function">Function1</a><T1,​R> f)</code></th> |
| <td class="colLast"> |
| <div class="block"><span class="deprecatedLabel">Deprecated.</span> |
| <div class="deprecationComment">Use <code>Lists.transform(java.util.List<F>, com.google.common.base.Function<? super F, ? extends T>)</code></div> |
| </div> |
| </td> |
| </tr> |
| <tr id="i1" class="rowColor"> |
| <td class="colFirst"><code>static <T1> <a href="Function1.html" title="interface in org.apache.calcite.linq4j.function">Function1</a><T1,​<a href="https://docs.oracle.com/javase/9/docs/api/java/lang/Double.html?is-external=true" title="class or interface in java.lang" class="externalLink">Double</a>></code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#adapt(org.apache.calcite.linq4j.function.DoubleFunction1)">adapt</a></span>​(<a href="DoubleFunction1.html" title="interface in org.apache.calcite.linq4j.function">DoubleFunction1</a><T1> f)</code></th> |
| <td class="colLast"> |
| <div class="block">Adapts a <a href="DoubleFunction1.html" title="interface in org.apache.calcite.linq4j.function"><code>DoubleFunction1</code></a> (that returns a <code>double</code>) to |
| an <a href="Function1.html" title="interface in org.apache.calcite.linq4j.function"><code>Function1</code></a> returning a <a href="https://docs.oracle.com/javase/9/docs/api/java/lang/Double.html?is-external=true" title="class or interface in java.lang" class="externalLink"><code>Double</code></a>.</div> |
| </td> |
| </tr> |
| <tr id="i2" class="altColor"> |
| <td class="colFirst"><code>static <T1> <a href="Function1.html" title="interface in org.apache.calcite.linq4j.function">Function1</a><T1,​<a href="https://docs.oracle.com/javase/9/docs/api/java/lang/Float.html?is-external=true" title="class or interface in java.lang" class="externalLink">Float</a>></code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#adapt(org.apache.calcite.linq4j.function.FloatFunction1)">adapt</a></span>​(<a href="FloatFunction1.html" title="interface in org.apache.calcite.linq4j.function">FloatFunction1</a><T1> f)</code></th> |
| <td class="colLast"> |
| <div class="block">Adapts a <a href="FloatFunction1.html" title="interface in org.apache.calcite.linq4j.function"><code>FloatFunction1</code></a> (that returns a <code>float</code>) to |
| an <a href="Function1.html" title="interface in org.apache.calcite.linq4j.function"><code>Function1</code></a> returning a <a href="https://docs.oracle.com/javase/9/docs/api/java/lang/Float.html?is-external=true" title="class or interface in java.lang" class="externalLink"><code>Float</code></a>.</div> |
| </td> |
| </tr> |
| <tr id="i3" class="rowColor"> |
| <td class="colFirst"><code>static <T1> <a href="Function1.html" title="interface in org.apache.calcite.linq4j.function">Function1</a><T1,​<a href="https://docs.oracle.com/javase/9/docs/api/java/lang/Integer.html?is-external=true" title="class or interface in java.lang" class="externalLink">Integer</a>></code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#adapt(org.apache.calcite.linq4j.function.IntegerFunction1)">adapt</a></span>​(<a href="IntegerFunction1.html" title="interface in org.apache.calcite.linq4j.function">IntegerFunction1</a><T1> f)</code></th> |
| <td class="colLast"> |
| <div class="block">Adapts an <a href="IntegerFunction1.html" title="interface in org.apache.calcite.linq4j.function"><code>IntegerFunction1</code></a> (that returns an <code>int</code>) to |
| an <a href="Function1.html" title="interface in org.apache.calcite.linq4j.function"><code>Function1</code></a> returning an <a href="https://docs.oracle.com/javase/9/docs/api/java/lang/Integer.html?is-external=true" title="class or interface in java.lang" class="externalLink"><code>Integer</code></a>.</div> |
| </td> |
| </tr> |
| <tr id="i4" class="altColor"> |
| <td class="colFirst"><code>static <T1> <a href="Function1.html" title="interface in org.apache.calcite.linq4j.function">Function1</a><T1,​<a href="https://docs.oracle.com/javase/9/docs/api/java/lang/Long.html?is-external=true" title="class or interface in java.lang" class="externalLink">Long</a>></code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#adapt(org.apache.calcite.linq4j.function.LongFunction1)">adapt</a></span>​(<a href="LongFunction1.html" title="interface in org.apache.calcite.linq4j.function">LongFunction1</a><T1> f)</code></th> |
| <td class="colLast"> |
| <div class="block">Adapts a <a href="LongFunction1.html" title="interface in org.apache.calcite.linq4j.function"><code>LongFunction1</code></a> (that returns a <code>long</code>) to |
| an <a href="Function1.html" title="interface in org.apache.calcite.linq4j.function"><code>Function1</code></a> returning a <a href="https://docs.oracle.com/javase/9/docs/api/java/lang/Long.html?is-external=true" title="class or interface in java.lang" class="externalLink"><code>Long</code></a>.</div> |
| </td> |
| </tr> |
| <tr id="i5" class="rowColor"> |
| <td class="colFirst"><code>static <T,​R><br><a href="https://docs.oracle.com/javase/9/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util" class="externalLink">List</a><R></code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#adapt(T%5B%5D,org.apache.calcite.linq4j.function.Function1)">adapt</a></span>​(T[] ts, |
| <a href="Function1.html" title="interface in org.apache.calcite.linq4j.function">Function1</a><T,​R> f)</code></th> |
| <td class="colLast"> |
| <div class="block"><span class="deprecatedLabel">Deprecated.</span> |
| <div class="deprecationComment">Use <code>Lists.transform(java.util.List<F>, com.google.common.base.Function<? super F, ? extends T>)</code> |
| and <a href="https://docs.oracle.com/javase/9/docs/api/java/util/Arrays.html?is-external=true#asList(T...)" title="class or interface in java.util" class="externalLink"><code>Arrays.asList(Object[])</code></a></div> |
| </div> |
| </td> |
| </tr> |
| <tr id="i6" class="altColor"> |
| <td class="colFirst"><code>static <E> boolean</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#all(java.util.List,org.apache.calcite.linq4j.function.Predicate1)">all</a></span>​(<a href="https://docs.oracle.com/javase/9/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util" class="externalLink">List</a><? extends E> list, |
| <a href="Predicate1.html" title="interface in org.apache.calcite.linq4j.function">Predicate1</a><E> predicate)</code></th> |
| <td class="colLast"> |
| <div class="block">Returns whether <code>predicate</code> is true for all elements of |
| <code>list</code>.</div> |
| </td> |
| </tr> |
| <tr id="i7" class="rowColor"> |
| <td class="colFirst"><code>static <T1,​R><br><a href="https://docs.oracle.com/javase/9/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util" class="externalLink">List</a><R></code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#apply(java.util.List,org.apache.calcite.linq4j.function.Function1)">apply</a></span>​(<a href="https://docs.oracle.com/javase/9/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util" class="externalLink">List</a><T1> list, |
| <a href="Function1.html" title="interface in org.apache.calcite.linq4j.function">Function1</a><T1,​R> f)</code></th> |
| <td class="colLast"> |
| <div class="block">Creates a copy of a list, applying a function to each element.</div> |
| </td> |
| </tr> |
| <tr id="i8" class="altColor"> |
| <td class="colFirst"><code>static <T> <a href="EqualityComparer.html" title="interface in org.apache.calcite.linq4j.function">EqualityComparer</a><T[]></code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#arrayComparer()">arrayComparer</a></span>()</code></th> |
| <td class="colLast"> |
| <div class="block">Returns an <a href="EqualityComparer.html" title="interface in org.apache.calcite.linq4j.function"><code>EqualityComparer</code></a> that works on arrays of objects.</div> |
| </td> |
| </tr> |
| <tr id="i9" class="rowColor"> |
| <td class="colFirst"><code>static <T,​R><br><a href="Function1.html" title="interface in org.apache.calcite.linq4j.function">Function1</a><T,​R></code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#constant(R)">constant</a></span>​(R r)</code></th> |
| <td class="colLast"> |
| <div class="block">Returns a 1-parameter function that always returns the same value.</div> |
| </td> |
| </tr> |
| <tr id="i10" class="altColor"> |
| <td class="colFirst"><code>static <T,​R><br><a href="Function1.html" title="interface in org.apache.calcite.linq4j.function">Function1</a><T,​R></code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#constantNull()">constantNull</a></span>()</code></th> |
| <td class="colLast"> |
| <div class="block">Returns a 1-parameter function that always returns null.</div> |
| </td> |
| </tr> |
| <tr id="i11" class="rowColor"> |
| <td class="colFirst"><code>static <E> boolean</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#exists(java.util.List,org.apache.calcite.linq4j.function.Predicate1)">exists</a></span>​(<a href="https://docs.oracle.com/javase/9/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util" class="externalLink">List</a><? extends E> list, |
| <a href="Predicate1.html" title="interface in org.apache.calcite.linq4j.function">Predicate1</a><E> predicate)</code></th> |
| <td class="colLast"> |
| <div class="block">Returns whether there is an element in <code>list</code> for which |
| <code>predicate</code> is true.</div> |
| </td> |
| </tr> |
| <tr id="i12" class="altColor"> |
| <td class="colFirst"><code>static <T> <a href="Predicate1.html" title="interface in org.apache.calcite.linq4j.function">Predicate1</a><T></code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#falsePredicate1()">falsePredicate1</a></span>()</code></th> |
| <td class="colLast"> |
| <div class="block">A predicate with one parameter that always returns <code>true</code>.</div> |
| </td> |
| </tr> |
| <tr id="i13" class="rowColor"> |
| <td class="colFirst"><code>static <T1,​T2><br><a href="Predicate2.html" title="interface in org.apache.calcite.linq4j.function">Predicate2</a><T1,​T2></code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#falsePredicate2()">falsePredicate2</a></span>()</code></th> |
| <td class="colLast"> |
| <div class="block">A predicate with two parameters that always returns <code>false</code>.</div> |
| </td> |
| </tr> |
| <tr id="i14" class="altColor"> |
| <td class="colFirst"><code>static <E> <a href="https://docs.oracle.com/javase/9/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util" class="externalLink">List</a><E></code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#filter(java.util.List,org.apache.calcite.linq4j.function.Predicate1)">filter</a></span>​(<a href="https://docs.oracle.com/javase/9/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util" class="externalLink">List</a><E> list, |
| <a href="Predicate1.html" title="interface in org.apache.calcite.linq4j.function">Predicate1</a><E> predicate)</code></th> |
| <td class="colLast"> |
| <div class="block">Returns a list that contains only elements of <code>list</code> that match |
| <code>predicate</code>.</div> |
| </td> |
| </tr> |
| <tr id="i15" class="rowColor"> |
| <td class="colFirst"><code>static <a href="https://docs.oracle.com/javase/9/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang" class="externalLink">Class</a><? extends <a href="Function.html" title="interface in org.apache.calcite.linq4j.function">Function</a>></code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#functionClass(java.lang.reflect.Type)">functionClass</a></span>​(<a href="https://docs.oracle.com/javase/9/docs/api/java/lang/reflect/Type.html?is-external=true" title="class or interface in java.lang.reflect" class="externalLink">Type</a> aClass)</code></th> |
| <td class="colLast"> |
| <div class="block">Returns the appropriate interface for a lambda function with |
| 1 argument and the given return type.</div> |
| </td> |
| </tr> |
| <tr id="i16" class="altColor"> |
| <td class="colFirst"><code>static <E> <a href="https://docs.oracle.com/javase/9/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util" class="externalLink">List</a><E></code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#generate(int,java.util.function.IntFunction)">generate</a></span>​(int size, |
| <a href="https://docs.oracle.com/javase/9/docs/api/java/util/function/IntFunction.html?is-external=true" title="class or interface in java.util.function" class="externalLink">IntFunction</a><E> fn)</code></th> |
| <td class="colLast"> |
| <div class="block">Returns a list generated by applying a function to each index between |
| 0 and <code>size</code> - 1.</div> |
| </td> |
| </tr> |
| <tr id="i17" class="rowColor"> |
| <td class="colFirst"><code>static <T> <a href="EqualityComparer.html" title="interface in org.apache.calcite.linq4j.function">EqualityComparer</a><T></code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#identityComparer()">identityComparer</a></span>()</code></th> |
| <td class="colLast"> |
| <div class="block">Returns an <a href="EqualityComparer.html" title="interface in org.apache.calcite.linq4j.function"><code>EqualityComparer</code></a> that uses object identity and hash |
| code.</div> |
| </td> |
| </tr> |
| <tr id="i18" class="altColor"> |
| <td class="colFirst"><code>static <TSource> <a href="Function1.html" title="interface in org.apache.calcite.linq4j.function">Function1</a><TSource,​TSource></code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#identitySelector()">identitySelector</a></span>()</code></th> |
| <td class="colLast"> </td> |
| </tr> |
| <tr id="i19" class="rowColor"> |
| <td class="colFirst"><code>static <R> <a href="Function0.html" title="interface in org.apache.calcite.linq4j.function">Function0</a><R></code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#ignore0()">ignore0</a></span>()</code></th> |
| <td class="colLast"> |
| <div class="block">Returns a function of arity 0 that does nothing.</div> |
| </td> |
| </tr> |
| <tr id="i20" class="altColor"> |
| <td class="colFirst"><code>static <R,​T0><br><a href="Function1.html" title="interface in org.apache.calcite.linq4j.function">Function1</a><R,​T0></code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#ignore1()">ignore1</a></span>()</code></th> |
| <td class="colLast"> |
| <div class="block">Returns a function of arity 1 that does nothing.</div> |
| </td> |
| </tr> |
| <tr id="i21" class="rowColor"> |
| <td class="colFirst"><code>static <R,​T0,​T1><br><a href="Function2.html" title="interface in org.apache.calcite.linq4j.function">Function2</a><R,​T0,​T1></code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#ignore2()">ignore2</a></span>()</code></th> |
| <td class="colLast"> |
| <div class="block">Returns a function of arity 2 that does nothing.</div> |
| </td> |
| </tr> |
| <tr id="i22" class="altColor"> |
| <td class="colFirst"><code>static <T extends <a href="https://docs.oracle.com/javase/9/docs/api/java/lang/Comparable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Comparable</a><T>><br><a href="https://docs.oracle.com/javase/9/docs/api/java/util/Comparator.html?is-external=true" title="class or interface in java.util" class="externalLink">Comparator</a><T></code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#nullsComparator(boolean,boolean)">nullsComparator</a></span>​(boolean nullsFirst, |
| boolean reverse)</code></th> |
| <td class="colLast"> |
| <div class="block">Returns a <a href="https://docs.oracle.com/javase/9/docs/api/java/util/Comparator.html?is-external=true" title="class or interface in java.util" class="externalLink"><code>Comparator</code></a> that handles null values.</div> |
| </td> |
| </tr> |
| <tr id="i23" class="rowColor"> |
| <td class="colFirst"><code>static <T extends <a href="https://docs.oracle.com/javase/9/docs/api/java/lang/Comparable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Comparable</a><T>><br><a href="https://docs.oracle.com/javase/9/docs/api/java/util/Comparator.html?is-external=true" title="class or interface in java.util" class="externalLink">Comparator</a><T></code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#nullsComparator(boolean,boolean,java.util.Comparator)">nullsComparator</a></span>​(boolean nullsFirst, |
| boolean reverse, |
| <a href="https://docs.oracle.com/javase/9/docs/api/java/util/Comparator.html?is-external=true" title="class or interface in java.util" class="externalLink">Comparator</a><T> comparator)</code></th> |
| <td class="colLast"> |
| <div class="block">Returns a <a href="https://docs.oracle.com/javase/9/docs/api/java/util/Comparator.html?is-external=true" title="class or interface in java.util" class="externalLink"><code>Comparator</code></a> that handles null values.</div> |
| </td> |
| </tr> |
| <tr id="i24" class="altColor"> |
| <td class="colFirst"><code>static <T,​T2><br><a href="Predicate1.html" title="interface in org.apache.calcite.linq4j.function">Predicate1</a><T></code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#ofTypePredicate(java.lang.Class)">ofTypePredicate</a></span>​(<a href="https://docs.oracle.com/javase/9/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang" class="externalLink">Class</a><T2> clazz)</code></th> |
| <td class="colLast"> |
| <div class="block">Creates a predicate that returns whether an object is an instance of a |
| particular type or is null.</div> |
| </td> |
| </tr> |
| <tr id="i25" class="rowColor"> |
| <td class="colFirst"><code>static <T,​T2><br><a href="EqualityComparer.html" title="interface in org.apache.calcite.linq4j.function">EqualityComparer</a><T></code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#selectorComparer(org.apache.calcite.linq4j.function.Function1)">selectorComparer</a></span>​(<a href="Function1.html" title="interface in org.apache.calcite.linq4j.function">Function1</a><T,​T2> selector)</code></th> |
| <td class="colLast"> |
| <div class="block">Returns an <a href="EqualityComparer.html" title="interface in org.apache.calcite.linq4j.function"><code>EqualityComparer</code></a> that uses a selector function.</div> |
| </td> |
| </tr> |
| <tr id="i26" class="altColor"> |
| <td class="colFirst"><code>static <T1,​T2><br><a href="Predicate2.html" title="interface in org.apache.calcite.linq4j.function">Predicate2</a><T1,​T2></code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#toPredicate(org.apache.calcite.linq4j.function.Function2)">toPredicate</a></span>​(<a href="Function2.html" title="interface in org.apache.calcite.linq4j.function">Function2</a><T1,​T2,​<a href="https://docs.oracle.com/javase/9/docs/api/java/lang/Boolean.html?is-external=true" title="class or interface in java.lang" class="externalLink">Boolean</a>> function)</code></th> |
| <td class="colLast"> |
| <div class="block">Converts a 2-parameter function to a predicate.</div> |
| </td> |
| </tr> |
| <tr id="i27" class="rowColor"> |
| <td class="colFirst"><code>static <T1,​T2><br><a href="Predicate2.html" title="interface in org.apache.calcite.linq4j.function">Predicate2</a><T1,​T2></code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#toPredicate2(org.apache.calcite.linq4j.function.Predicate1)">toPredicate2</a></span>​(<a href="Predicate1.html" title="interface in org.apache.calcite.linq4j.function">Predicate1</a><T1> p1)</code></th> |
| <td class="colLast"> </td> |
| </tr> |
| <tr id="i28" class="altColor"> |
| <td class="colFirst"><code>static <TSource> <a href="Function1.html" title="interface in org.apache.calcite.linq4j.function">Function1</a><TSource,​<a href="https://docs.oracle.com/javase/9/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang" class="externalLink">String</a>></code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#toStringSelector()">toStringSelector</a></span>()</code></th> |
| <td class="colLast"> |
| <div class="block">Returns a selector that calls the <a href="https://docs.oracle.com/javase/9/docs/api/java/lang/Object.html?is-external=true#toString()" title="class or interface in java.lang" class="externalLink"><code>Object.toString()</code></a> method on |
| each element.</div> |
| </td> |
| </tr> |
| <tr id="i29" class="rowColor"> |
| <td class="colFirst"><code>static <T> <a href="Predicate1.html" title="interface in org.apache.calcite.linq4j.function">Predicate1</a><T></code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#truePredicate1()">truePredicate1</a></span>()</code></th> |
| <td class="colLast"> |
| <div class="block">A predicate with one parameter that always returns <code>true</code>.</div> |
| </td> |
| </tr> |
| <tr id="i30" class="altColor"> |
| <td class="colFirst"><code>static <T1,​T2><br><a href="Predicate2.html" title="interface in org.apache.calcite.linq4j.function">Predicate2</a><T1,​T2></code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#truePredicate2()">truePredicate2</a></span>()</code></th> |
| <td class="colLast"> |
| <div class="block">A predicate with two parameters that always returns <code>true</code>.</div> |
| </td> |
| </tr> |
| </table> |
| <ul class="blockList"> |
| <li class="blockList"><a id="methods.inherited.from.class.java.lang.Object"> |
| <!-- --> |
| </a> |
| <h3>Methods inherited from class java.lang.<a href="https://docs.oracle.com/javase/9/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang" class="externalLink">Object</a></h3> |
| <code><a href="https://docs.oracle.com/javase/9/docs/api/java/lang/Object.html?is-external=true#clone()" title="class or interface in java.lang" class="externalLink">clone</a>, <a href="https://docs.oracle.com/javase/9/docs/api/java/lang/Object.html?is-external=true#equals(java.lang.Object)" title="class or interface in java.lang" class="externalLink">equals</a>, <a href="https://docs.oracle.com/javase/9/docs/api/java/lang/Object.html?is-external=true#finalize()" title="class or interface in java.lang" class="externalLink">finalize</a>, <a href="https://docs.oracle.com/javase/9/docs/api/java/lang/Object.html?is-external=true#getClass()" title="class or interface in java.lang" class="externalLink">getClass</a>, <a href="https://docs.oracle.com/javase/9/docs/api/java/lang/Object.html?is-external=true#hashCode()" title="class or interface in java.lang" class="externalLink">hashCode</a>, <a href="https://docs.oracle.com/javase/9/docs/api/java/lang/Object.html?is-external=true#notify()" title="class or interface in java.lang" class="externalLink">notify</a>, <a href="https://docs.oracle.com/javase/9/docs/api/java/lang/Object.html?is-external=true#notifyAll()" title="class or interface in java.lang" class="externalLink">notifyAll</a>, <a href="https://docs.oracle.com/javase/9/docs/api/java/lang/Object.html?is-external=true#toString()" title="class or interface in java.lang" class="externalLink">toString</a>, <a href="https://docs.oracle.com/javase/9/docs/api/java/lang/Object.html?is-external=true#wait()" title="class or interface in java.lang" class="externalLink">wait</a>, <a href="https://docs.oracle.com/javase/9/docs/api/java/lang/Object.html?is-external=true#wait(long)" title="class or interface in java.lang" class="externalLink">wait</a>, <a href="https://docs.oracle.com/javase/9/docs/api/java/lang/Object.html?is-external=true#wait(long,int)" title="class or interface in java.lang" class="externalLink">wait</a></code></li> |
| </ul> |
| </li> |
| </ul> |
| </section> |
| </li> |
| </ul> |
| </div> |
| <div class="details"> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <!-- ============ FIELD DETAIL =========== --> |
| <section role="region"> |
| <ul class="blockList"> |
| <li class="blockList"><a id="field.detail"> |
| <!-- --> |
| </a> |
| <h3>Field Detail</h3> |
| <a id="FUNCTION_RESULT_TYPES"> |
| <!-- --> |
| </a> |
| <ul class="blockListLast"> |
| <li class="blockList"> |
| <h4>FUNCTION_RESULT_TYPES</h4> |
| <pre>public static final <a href="https://docs.oracle.com/javase/9/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util" class="externalLink">Map</a><<a href="https://docs.oracle.com/javase/9/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang" class="externalLink">Class</a><? extends <a href="Function.html" title="interface in org.apache.calcite.linq4j.function">Function</a>>,​<a href="https://docs.oracle.com/javase/9/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang" class="externalLink">Class</a>> FUNCTION_RESULT_TYPES</pre> |
| </li> |
| </ul> |
| </li> |
| </ul> |
| </section> |
| <!-- ============ METHOD DETAIL ========== --> |
| <section role="region"> |
| <ul class="blockList"> |
| <li class="blockList"><a id="method.detail"> |
| <!-- --> |
| </a> |
| <h3>Method Detail</h3> |
| <a id="constant(java.lang.Object)"> |
| <!-- --> |
| </a><a id="constant(R)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>constant</h4> |
| <pre class="methodSignature">public static <T,​R> <a href="Function1.html" title="interface in org.apache.calcite.linq4j.function">Function1</a><T,​R> constant​(R r)</pre> |
| <div class="block">Returns a 1-parameter function that always returns the same value.</div> |
| </li> |
| </ul> |
| <a id="constantNull()"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>constantNull</h4> |
| <pre class="methodSignature">public static <T,​R> <a href="Function1.html" title="interface in org.apache.calcite.linq4j.function">Function1</a><T,​R> constantNull()</pre> |
| <div class="block">Returns a 1-parameter function that always returns null.</div> |
| </li> |
| </ul> |
| <a id="truePredicate1()"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>truePredicate1</h4> |
| <pre class="methodSignature">public static <T> <a href="Predicate1.html" title="interface in org.apache.calcite.linq4j.function">Predicate1</a><T> truePredicate1()</pre> |
| <div class="block">A predicate with one parameter that always returns <code>true</code>.</div> |
| <dl> |
| <dt><span class="paramLabel">Type Parameters:</span></dt> |
| <dd><code>T</code> - First parameter type</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>Predicate that always returns true</dd> |
| </dl> |
| </li> |
| </ul> |
| <a id="falsePredicate1()"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>falsePredicate1</h4> |
| <pre class="methodSignature">public static <T> <a href="Predicate1.html" title="interface in org.apache.calcite.linq4j.function">Predicate1</a><T> falsePredicate1()</pre> |
| <div class="block">A predicate with one parameter that always returns <code>true</code>.</div> |
| <dl> |
| <dt><span class="paramLabel">Type Parameters:</span></dt> |
| <dd><code>T</code> - First parameter type</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>Predicate that always returns true</dd> |
| </dl> |
| </li> |
| </ul> |
| <a id="truePredicate2()"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>truePredicate2</h4> |
| <pre class="methodSignature">public static <T1,​T2> <a href="Predicate2.html" title="interface in org.apache.calcite.linq4j.function">Predicate2</a><T1,​T2> truePredicate2()</pre> |
| <div class="block">A predicate with two parameters that always returns <code>true</code>.</div> |
| <dl> |
| <dt><span class="paramLabel">Type Parameters:</span></dt> |
| <dd><code>T1</code> - First parameter type</dd> |
| <dd><code>T2</code> - Second parameter type</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>Predicate that always returns true</dd> |
| </dl> |
| </li> |
| </ul> |
| <a id="falsePredicate2()"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>falsePredicate2</h4> |
| <pre class="methodSignature">public static <T1,​T2> <a href="Predicate2.html" title="interface in org.apache.calcite.linq4j.function">Predicate2</a><T1,​T2> falsePredicate2()</pre> |
| <div class="block">A predicate with two parameters that always returns <code>false</code>.</div> |
| <dl> |
| <dt><span class="paramLabel">Type Parameters:</span></dt> |
| <dd><code>T1</code> - First parameter type</dd> |
| <dd><code>T2</code> - Second parameter type</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>Predicate that always returns false</dd> |
| </dl> |
| </li> |
| </ul> |
| <a id="identitySelector()"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>identitySelector</h4> |
| <pre class="methodSignature">public static <TSource> <a href="Function1.html" title="interface in org.apache.calcite.linq4j.function">Function1</a><TSource,​TSource> identitySelector()</pre> |
| </li> |
| </ul> |
| <a id="toStringSelector()"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>toStringSelector</h4> |
| <pre class="methodSignature">public static <TSource> <a href="Function1.html" title="interface in org.apache.calcite.linq4j.function">Function1</a><TSource,​<a href="https://docs.oracle.com/javase/9/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang" class="externalLink">String</a>> toStringSelector()</pre> |
| <div class="block">Returns a selector that calls the <a href="https://docs.oracle.com/javase/9/docs/api/java/lang/Object.html?is-external=true#toString()" title="class or interface in java.lang" class="externalLink"><code>Object.toString()</code></a> method on |
| each element.</div> |
| </li> |
| </ul> |
| <a id="ofTypePredicate(java.lang.Class)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>ofTypePredicate</h4> |
| <pre class="methodSignature">public static <T,​T2> <a href="Predicate1.html" title="interface in org.apache.calcite.linq4j.function">Predicate1</a><T> ofTypePredicate​(<a href="https://docs.oracle.com/javase/9/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang" class="externalLink">Class</a><T2> clazz)</pre> |
| <div class="block">Creates a predicate that returns whether an object is an instance of a |
| particular type or is null.</div> |
| <dl> |
| <dt><span class="paramLabel">Type Parameters:</span></dt> |
| <dd><code>T</code> - Type of objects to test</dd> |
| <dd><code>T2</code> - Desired type</dd> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>clazz</code> - Desired type</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>Predicate that tests for desired type</dd> |
| </dl> |
| </li> |
| </ul> |
| <a id="toPredicate2(org.apache.calcite.linq4j.function.Predicate1)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>toPredicate2</h4> |
| <pre class="methodSignature">public static <T1,​T2> <a href="Predicate2.html" title="interface in org.apache.calcite.linq4j.function">Predicate2</a><T1,​T2> toPredicate2​(<a href="Predicate1.html" title="interface in org.apache.calcite.linq4j.function">Predicate1</a><T1> p1)</pre> |
| </li> |
| </ul> |
| <a id="toPredicate(org.apache.calcite.linq4j.function.Function2)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>toPredicate</h4> |
| <pre class="methodSignature">public static <T1,​T2> <a href="Predicate2.html" title="interface in org.apache.calcite.linq4j.function">Predicate2</a><T1,​T2> toPredicate​(<a href="Function2.html" title="interface in org.apache.calcite.linq4j.function">Function2</a><T1,​T2,​<a href="https://docs.oracle.com/javase/9/docs/api/java/lang/Boolean.html?is-external=true" title="class or interface in java.lang" class="externalLink">Boolean</a>> function)</pre> |
| <div class="block">Converts a 2-parameter function to a predicate.</div> |
| </li> |
| </ul> |
| <a id="functionClass(java.lang.reflect.Type)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>functionClass</h4> |
| <pre class="methodSignature">public static <a href="https://docs.oracle.com/javase/9/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang" class="externalLink">Class</a><? extends <a href="Function.html" title="interface in org.apache.calcite.linq4j.function">Function</a>> functionClass​(<a href="https://docs.oracle.com/javase/9/docs/api/java/lang/reflect/Type.html?is-external=true" title="class or interface in java.lang.reflect" class="externalLink">Type</a> aClass)</pre> |
| <div class="block">Returns the appropriate interface for a lambda function with |
| 1 argument and the given return type. |
| |
| <p>For example:</p> |
| functionClass(Integer.TYPE) returns IntegerFunction1.class |
| functionClass(String.class) returns Function1.class</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>aClass</code> - Return type</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>Function class</dd> |
| </dl> |
| </li> |
| </ul> |
| <a id="adapt(org.apache.calcite.linq4j.function.IntegerFunction1)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>adapt</h4> |
| <pre class="methodSignature">public static <T1> <a href="Function1.html" title="interface in org.apache.calcite.linq4j.function">Function1</a><T1,​<a href="https://docs.oracle.com/javase/9/docs/api/java/lang/Integer.html?is-external=true" title="class or interface in java.lang" class="externalLink">Integer</a>> adapt​(<a href="IntegerFunction1.html" title="interface in org.apache.calcite.linq4j.function">IntegerFunction1</a><T1> f)</pre> |
| <div class="block">Adapts an <a href="IntegerFunction1.html" title="interface in org.apache.calcite.linq4j.function"><code>IntegerFunction1</code></a> (that returns an <code>int</code>) to |
| an <a href="Function1.html" title="interface in org.apache.calcite.linq4j.function"><code>Function1</code></a> returning an <a href="https://docs.oracle.com/javase/9/docs/api/java/lang/Integer.html?is-external=true" title="class or interface in java.lang" class="externalLink"><code>Integer</code></a>.</div> |
| </li> |
| </ul> |
| <a id="adapt(org.apache.calcite.linq4j.function.DoubleFunction1)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>adapt</h4> |
| <pre class="methodSignature">public static <T1> <a href="Function1.html" title="interface in org.apache.calcite.linq4j.function">Function1</a><T1,​<a href="https://docs.oracle.com/javase/9/docs/api/java/lang/Double.html?is-external=true" title="class or interface in java.lang" class="externalLink">Double</a>> adapt​(<a href="DoubleFunction1.html" title="interface in org.apache.calcite.linq4j.function">DoubleFunction1</a><T1> f)</pre> |
| <div class="block">Adapts a <a href="DoubleFunction1.html" title="interface in org.apache.calcite.linq4j.function"><code>DoubleFunction1</code></a> (that returns a <code>double</code>) to |
| an <a href="Function1.html" title="interface in org.apache.calcite.linq4j.function"><code>Function1</code></a> returning a <a href="https://docs.oracle.com/javase/9/docs/api/java/lang/Double.html?is-external=true" title="class or interface in java.lang" class="externalLink"><code>Double</code></a>.</div> |
| </li> |
| </ul> |
| <a id="adapt(org.apache.calcite.linq4j.function.LongFunction1)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>adapt</h4> |
| <pre class="methodSignature">public static <T1> <a href="Function1.html" title="interface in org.apache.calcite.linq4j.function">Function1</a><T1,​<a href="https://docs.oracle.com/javase/9/docs/api/java/lang/Long.html?is-external=true" title="class or interface in java.lang" class="externalLink">Long</a>> adapt​(<a href="LongFunction1.html" title="interface in org.apache.calcite.linq4j.function">LongFunction1</a><T1> f)</pre> |
| <div class="block">Adapts a <a href="LongFunction1.html" title="interface in org.apache.calcite.linq4j.function"><code>LongFunction1</code></a> (that returns a <code>long</code>) to |
| an <a href="Function1.html" title="interface in org.apache.calcite.linq4j.function"><code>Function1</code></a> returning a <a href="https://docs.oracle.com/javase/9/docs/api/java/lang/Long.html?is-external=true" title="class or interface in java.lang" class="externalLink"><code>Long</code></a>.</div> |
| </li> |
| </ul> |
| <a id="adapt(org.apache.calcite.linq4j.function.FloatFunction1)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>adapt</h4> |
| <pre class="methodSignature">public static <T1> <a href="Function1.html" title="interface in org.apache.calcite.linq4j.function">Function1</a><T1,​<a href="https://docs.oracle.com/javase/9/docs/api/java/lang/Float.html?is-external=true" title="class or interface in java.lang" class="externalLink">Float</a>> adapt​(<a href="FloatFunction1.html" title="interface in org.apache.calcite.linq4j.function">FloatFunction1</a><T1> f)</pre> |
| <div class="block">Adapts a <a href="FloatFunction1.html" title="interface in org.apache.calcite.linq4j.function"><code>FloatFunction1</code></a> (that returns a <code>float</code>) to |
| an <a href="Function1.html" title="interface in org.apache.calcite.linq4j.function"><code>Function1</code></a> returning a <a href="https://docs.oracle.com/javase/9/docs/api/java/lang/Float.html?is-external=true" title="class or interface in java.lang" class="externalLink"><code>Float</code></a>.</div> |
| </li> |
| </ul> |
| <a id="adapt(java.util.List,org.apache.calcite.linq4j.function.Function1)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>adapt</h4> |
| <pre class="methodSignature"><a href="https://docs.oracle.com/javase/9/docs/api/java/lang/Deprecated.html?is-external=true" title="class or interface in java.lang" class="externalLink">@Deprecated</a> |
| public static <T1,​R> <a href="https://docs.oracle.com/javase/9/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util" class="externalLink">List</a><R> adapt​(<a href="https://docs.oracle.com/javase/9/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util" class="externalLink">List</a><T1> list, |
| <a href="Function1.html" title="interface in org.apache.calcite.linq4j.function">Function1</a><T1,​R> f)</pre> |
| <div class="deprecationBlock"><span class="deprecatedLabel">Deprecated.</span> |
| <div class="deprecationComment">Use <code>Lists.transform(java.util.List<F>, com.google.common.base.Function<? super F, ? extends T>)</code></div> |
| </div> |
| <div class="block">Creates a view of a list that applies a function to each element.</div> |
| </li> |
| </ul> |
| <a id="adapt(java.lang.Object[],org.apache.calcite.linq4j.function.Function1)"> |
| <!-- --> |
| </a><a id="adapt(T[],org.apache.calcite.linq4j.function.Function1)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>adapt</h4> |
| <pre class="methodSignature"><a href="https://docs.oracle.com/javase/9/docs/api/java/lang/Deprecated.html?is-external=true" title="class or interface in java.lang" class="externalLink">@Deprecated</a> |
| public static <T,​R> <a href="https://docs.oracle.com/javase/9/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util" class="externalLink">List</a><R> adapt​(T[] ts, |
| <a href="Function1.html" title="interface in org.apache.calcite.linq4j.function">Function1</a><T,​R> f)</pre> |
| <div class="deprecationBlock"><span class="deprecatedLabel">Deprecated.</span> |
| <div class="deprecationComment">Use <code>Lists.transform(java.util.List<F>, com.google.common.base.Function<? super F, ? extends T>)</code> |
| and <a href="https://docs.oracle.com/javase/9/docs/api/java/util/Arrays.html?is-external=true#asList(T...)" title="class or interface in java.util" class="externalLink"><code>Arrays.asList(Object[])</code></a></div> |
| </div> |
| <div class="block">Creates a view of an array that applies a function to each element.</div> |
| </li> |
| </ul> |
| <a id="apply(java.util.List,org.apache.calcite.linq4j.function.Function1)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>apply</h4> |
| <pre class="methodSignature">public static <T1,​R> <a href="https://docs.oracle.com/javase/9/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util" class="externalLink">List</a><R> apply​(<a href="https://docs.oracle.com/javase/9/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util" class="externalLink">List</a><T1> list, |
| <a href="Function1.html" title="interface in org.apache.calcite.linq4j.function">Function1</a><T1,​R> f)</pre> |
| <div class="block">Creates a copy of a list, applying a function to each element.</div> |
| </li> |
| </ul> |
| <a id="filter(java.util.List,org.apache.calcite.linq4j.function.Predicate1)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>filter</h4> |
| <pre class="methodSignature">public static <E> <a href="https://docs.oracle.com/javase/9/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util" class="externalLink">List</a><E> filter​(<a href="https://docs.oracle.com/javase/9/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util" class="externalLink">List</a><E> list, |
| <a href="Predicate1.html" title="interface in org.apache.calcite.linq4j.function">Predicate1</a><E> predicate)</pre> |
| <div class="block">Returns a list that contains only elements of <code>list</code> that match |
| <code>predicate</code>. Avoids allocating a list if all elements match or no |
| elements match.</div> |
| </li> |
| </ul> |
| <a id="exists(java.util.List,org.apache.calcite.linq4j.function.Predicate1)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>exists</h4> |
| <pre class="methodSignature">public static <E> boolean exists​(<a href="https://docs.oracle.com/javase/9/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util" class="externalLink">List</a><? extends E> list, |
| <a href="Predicate1.html" title="interface in org.apache.calcite.linq4j.function">Predicate1</a><E> predicate)</pre> |
| <div class="block">Returns whether there is an element in <code>list</code> for which |
| <code>predicate</code> is true.</div> |
| </li> |
| </ul> |
| <a id="all(java.util.List,org.apache.calcite.linq4j.function.Predicate1)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>all</h4> |
| <pre class="methodSignature">public static <E> boolean all​(<a href="https://docs.oracle.com/javase/9/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util" class="externalLink">List</a><? extends E> list, |
| <a href="Predicate1.html" title="interface in org.apache.calcite.linq4j.function">Predicate1</a><E> predicate)</pre> |
| <div class="block">Returns whether <code>predicate</code> is true for all elements of |
| <code>list</code>.</div> |
| </li> |
| </ul> |
| <a id="generate(int,java.util.function.IntFunction)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>generate</h4> |
| <pre class="methodSignature">public static <E> <a href="https://docs.oracle.com/javase/9/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util" class="externalLink">List</a><E> generate​(int size, |
| <a href="https://docs.oracle.com/javase/9/docs/api/java/util/function/IntFunction.html?is-external=true" title="class or interface in java.util.function" class="externalLink">IntFunction</a><E> fn)</pre> |
| <div class="block">Returns a list generated by applying a function to each index between |
| 0 and <code>size</code> - 1.</div> |
| </li> |
| </ul> |
| <a id="ignore0()"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>ignore0</h4> |
| <pre class="methodSignature">public static <R> <a href="Function0.html" title="interface in org.apache.calcite.linq4j.function">Function0</a><R> ignore0()</pre> |
| <div class="block">Returns a function of arity 0 that does nothing.</div> |
| <dl> |
| <dt><span class="paramLabel">Type Parameters:</span></dt> |
| <dd><code>R</code> - Return type</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>Function that does nothing.</dd> |
| </dl> |
| </li> |
| </ul> |
| <a id="ignore1()"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>ignore1</h4> |
| <pre class="methodSignature">public static <R,​T0> <a href="Function1.html" title="interface in org.apache.calcite.linq4j.function">Function1</a><R,​T0> ignore1()</pre> |
| <div class="block">Returns a function of arity 1 that does nothing.</div> |
| <dl> |
| <dt><span class="paramLabel">Type Parameters:</span></dt> |
| <dd><code>R</code> - Return type</dd> |
| <dd><code>T0</code> - Type of parameter 0</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>Function that does nothing.</dd> |
| </dl> |
| </li> |
| </ul> |
| <a id="ignore2()"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>ignore2</h4> |
| <pre class="methodSignature">public static <R,​T0,​T1> <a href="Function2.html" title="interface in org.apache.calcite.linq4j.function">Function2</a><R,​T0,​T1> ignore2()</pre> |
| <div class="block">Returns a function of arity 2 that does nothing.</div> |
| <dl> |
| <dt><span class="paramLabel">Type Parameters:</span></dt> |
| <dd><code>R</code> - Return type</dd> |
| <dd><code>T0</code> - Type of parameter 0</dd> |
| <dd><code>T1</code> - Type of parameter 1</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>Function that does nothing.</dd> |
| </dl> |
| </li> |
| </ul> |
| <a id="nullsComparator(boolean,boolean)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>nullsComparator</h4> |
| <pre class="methodSignature">public static <T extends <a href="https://docs.oracle.com/javase/9/docs/api/java/lang/Comparable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Comparable</a><T>> <a href="https://docs.oracle.com/javase/9/docs/api/java/util/Comparator.html?is-external=true" title="class or interface in java.util" class="externalLink">Comparator</a><T> nullsComparator​(boolean nullsFirst, |
| boolean reverse)</pre> |
| <div class="block">Returns a <a href="https://docs.oracle.com/javase/9/docs/api/java/util/Comparator.html?is-external=true" title="class or interface in java.util" class="externalLink"><code>Comparator</code></a> that handles null values.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>nullsFirst</code> - Whether nulls come before all other values</dd> |
| <dd><code>reverse</code> - Whether to reverse the usual order of <a href="https://docs.oracle.com/javase/9/docs/api/java/lang/Comparable.html?is-external=true" title="class or interface in java.lang" class="externalLink"><code>Comparable</code></a>s</dd> |
| </dl> |
| </li> |
| </ul> |
| <a id="nullsComparator(boolean,boolean,java.util.Comparator)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>nullsComparator</h4> |
| <pre class="methodSignature">public static <T extends <a href="https://docs.oracle.com/javase/9/docs/api/java/lang/Comparable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Comparable</a><T>> <a href="https://docs.oracle.com/javase/9/docs/api/java/util/Comparator.html?is-external=true" title="class or interface in java.util" class="externalLink">Comparator</a><T> nullsComparator​(boolean nullsFirst, |
| boolean reverse, |
| <a href="https://docs.oracle.com/javase/9/docs/api/java/util/Comparator.html?is-external=true" title="class or interface in java.util" class="externalLink">Comparator</a><T> comparator)</pre> |
| <div class="block">Returns a <a href="https://docs.oracle.com/javase/9/docs/api/java/util/Comparator.html?is-external=true" title="class or interface in java.util" class="externalLink"><code>Comparator</code></a> that handles null values.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>nullsFirst</code> - Whether nulls come before all other values</dd> |
| <dd><code>reverse</code> - Whether to reverse the usual order of <a href="https://docs.oracle.com/javase/9/docs/api/java/lang/Comparable.html?is-external=true" title="class or interface in java.lang" class="externalLink"><code>Comparable</code></a>s</dd> |
| <dd><code>comparator</code> - Comparator to be used for comparison</dd> |
| </dl> |
| </li> |
| </ul> |
| <a id="identityComparer()"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>identityComparer</h4> |
| <pre class="methodSignature">public static <T> <a href="EqualityComparer.html" title="interface in org.apache.calcite.linq4j.function">EqualityComparer</a><T> identityComparer()</pre> |
| <div class="block">Returns an <a href="EqualityComparer.html" title="interface in org.apache.calcite.linq4j.function"><code>EqualityComparer</code></a> that uses object identity and hash |
| code.</div> |
| </li> |
| </ul> |
| <a id="arrayComparer()"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>arrayComparer</h4> |
| <pre class="methodSignature">public static <T> <a href="EqualityComparer.html" title="interface in org.apache.calcite.linq4j.function">EqualityComparer</a><T[]> arrayComparer()</pre> |
| <div class="block">Returns an <a href="EqualityComparer.html" title="interface in org.apache.calcite.linq4j.function"><code>EqualityComparer</code></a> that works on arrays of objects.</div> |
| </li> |
| </ul> |
| <a id="selectorComparer(org.apache.calcite.linq4j.function.Function1)"> |
| <!-- --> |
| </a> |
| <ul class="blockListLast"> |
| <li class="blockList"> |
| <h4>selectorComparer</h4> |
| <pre class="methodSignature">public static <T,​T2> <a href="EqualityComparer.html" title="interface in org.apache.calcite.linq4j.function">EqualityComparer</a><T> selectorComparer​(<a href="Function1.html" title="interface in org.apache.calcite.linq4j.function">Function1</a><T,​T2> selector)</pre> |
| <div class="block">Returns an <a href="EqualityComparer.html" title="interface in org.apache.calcite.linq4j.function"><code>EqualityComparer</code></a> that uses a selector function.</div> |
| </li> |
| </ul> |
| </li> |
| </ul> |
| </section> |
| </li> |
| </ul> |
| </div> |
| </div> |
| </main> |
| <!-- ========= END OF CLASS DATA ========= --> |
| <footer role="contentinfo"> |
| <nav role="navigation"> |
| <!-- ======= START OF BOTTOM NAVBAR ====== --> |
| <div class="bottomNav"><a id="navbar.bottom"> |
| <!-- --> |
| </a> |
| <div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div> |
| <a id="navbar.bottom.firstrow"> |
| <!-- --> |
| </a> |
| <ul class="navList" title="Navigation"> |
| <li><a href="../../../../../index.html">Overview</a></li> |
| <li><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" id="allclasses_navbar_bottom"> |
| <li><a href="../../../../../allclasses.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> |
| <noscript> |
| <div>JavaScript is disabled on your browser.</div> |
| </noscript> |
| </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 id="skip.navbar.bottom"> |
| <!-- --> |
| </a></div> |
| <!-- ======== END OF BOTTOM NAVBAR ======= --> |
| </nav> |
| <p class="legalCopy"><small>Copyright © 2012-2020 Apache Software Foundation. All Rights Reserved.</small></p> |
| </footer> |
| </body> |
| </html> |