| <!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"> |
| <meta name="description" content="declaration: package: org.apache.calcite.linq4j.function, class: Functions"> |
| <meta name="generator" content="javadoc/ClassWriterImpl"> |
| <link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="Style"> |
| <link rel="stylesheet" type="text/css" href="../../../../../script-dir/jquery-ui.css" title="Style"> |
| <script type="text/javascript" src="../../../../../script.js"></script> |
| <script type="text/javascript" src="../../../../../script-dir/jszip/dist/jszip.min.js"></script> |
| <script type="text/javascript" src="../../../../../script-dir/jszip-utils/dist/jszip-utils.min.js"></script> |
| <!--[if IE]> |
| <script type="text/javascript" src="../../../../../script-dir/jszip-utils/dist/jszip-utils-ie.min.js"></script> |
| <![endif]--> |
| <script type="text/javascript" src="../../../../../script-dir/jquery-3.4.1.js"></script> |
| <script type="text/javascript" src="../../../../../script-dir/jquery-ui.js"></script> |
| </head> |
| <body class="class-declaration"> |
| <script type="text/javascript">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 = "../../../../../"; |
| loadScripts(document, 'script');</script> |
| <noscript> |
| <div>JavaScript is disabled on your browser.</div> |
| </noscript> |
| <div class="flexBox"> |
| <header role="banner" class="flexHeader"> |
| <nav role="navigation"> |
| <!-- ========= 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"> |
| <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> |
| <div class="navListSearch"><label for="search">SEARCH:</label> |
| <input type="text" id="search" value="search" disabled="disabled"> |
| <input type="reset" id="reset" value="reset" disabled="disabled"> |
| </div> |
| </div> |
| <!-- ========= END OF TOP NAVBAR ========= --> |
| <div class="skipNav"><a id="skip.navbar.top"> |
| <!-- --> |
| </a></div> |
| </nav> |
| </header> |
| <div class="flexContent"> |
| <main role="main"> |
| <!-- ======== START OF CLASS DATA ======== --> |
| <div class="header"> |
| <div class="subTitle"><span class="packageLabelInType">Package</span> <a href="package-summary.html">org.apache.calcite.linq4j.function</a></div> |
| <h1 title="Class Functions" class="title">Class Functions</h1> |
| </div> |
| <div class="contentContainer"> |
| <div class="inheritance" title="Inheritance Tree"><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> |
| <div class="inheritance">org.apache.calcite.linq4j.function.Functions</div> |
| </div> |
| <section class="description"> |
| <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> |
| </section> |
| <section class="summary"> |
| <ul class="blockList"> |
| <!-- =========== FIELD SUMMARY =========== --> |
| <li class="blockList"> |
| <section class="fieldSummary"><a id="field.summary"> |
| <!-- --> |
| </a> |
| <h2>Field Summary</h2> |
| <div class="memberSummary"> |
| <table> |
| <caption><span>Fields</span><span class="tabEnd"> </span></caption> |
| <thead> |
| <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> |
| </thead> |
| <tbody> |
| <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> |
| </tbody> |
| </table> |
| </div> |
| </section> |
| </li> |
| <!-- ========== METHOD SUMMARY =========== --> |
| <li class="blockList"> |
| <section class="methodSummary"><a id="method.summary"> |
| <!-- --> |
| </a> |
| <h2>Method Summary</h2> |
| <div class="memberSummary"> |
| <div role="tablist" aria-orientation="horizontal"><button role="tab" aria-selected="true" aria-controls="memberSummary_tabpanel" tabindex="0" onkeydown="switchTab(event)" id="t0" class="activeTableTab">All Methods</button><button role="tab" aria-selected="false" aria-controls="memberSummary_tabpanel" tabindex="-1" onkeydown="switchTab(event)" id="t1" class="tableTab" onclick="show(1);">Static Methods</button><button role="tab" aria-selected="false" aria-controls="memberSummary_tabpanel" tabindex="-1" onkeydown="switchTab(event)" id="t4" class="tableTab" onclick="show(8);">Concrete Methods</button><button role="tab" aria-selected="false" aria-controls="memberSummary_tabpanel" tabindex="-1" onkeydown="switchTab(event)" id="t6" class="tableTab" onclick="show(32);">Deprecated Methods</button></div> |
| <div id="memberSummary_tabpanel" role="tabpanel"> |
| <table aria-labelledby="t0"> |
| <thead> |
| <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> |
| </thead> |
| <tbody> |
| <tr class="altColor" id="i0"> |
| <td class="colFirst"><code>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></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 class="rowColor" id="i1"> |
| <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 class="altColor" id="i2"> |
| <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 class="rowColor" id="i3"> |
| <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 class="altColor" id="i4"> |
| <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 class="rowColor" id="i5"> |
| <td class="colFirst"><code>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></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 class="altColor" id="i6"> |
| <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 class="rowColor" id="i7"> |
| <td class="colFirst"><code>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></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 class="altColor" id="i8"> |
| <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 class="rowColor" id="i9"> |
| <td class="colFirst"><code>static <T,​ |
| R> <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 class="altColor" id="i10"> |
| <td class="colFirst"><code>static <T,​ |
| R> <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 class="rowColor" id="i11"> |
| <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 class="altColor" id="i12"> |
| <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 class="rowColor" id="i13"> |
| <td class="colFirst"><code>static <T1,​ |
| T2> <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 class="altColor" id="i14"> |
| <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 class="rowColor" id="i15"> |
| <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 class="altColor" id="i16"> |
| <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 class="rowColor" id="i17"> |
| <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 class="altColor" id="i18"> |
| <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 class="rowColor" id="i19"> |
| <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 class="altColor" id="i20"> |
| <td class="colFirst"><code>static <R,​ |
| T0> <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 class="rowColor" id="i21"> |
| <td class="colFirst"><code>static <R,​ |
| T0,​ |
| T1> <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 class="altColor" id="i22"> |
| <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 class="rowColor" id="i23"> |
| <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 class="altColor" id="i24"> |
| <td class="colFirst"><code>static <T,​ |
| T2> <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 class="rowColor" id="i25"> |
| <td class="colFirst"><code>static <T,​ |
| T2> <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 class="altColor" id="i26"> |
| <td class="colFirst"><code>static <T1,​ |
| T2> <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 class="rowColor" id="i27"> |
| <td class="colFirst"><code>static <T1,​ |
| T2> <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 class="altColor" id="i28"> |
| <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 class="rowColor" id="i29"> |
| <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 class="altColor" id="i30"> |
| <td class="colFirst"><code>static <T1,​ |
| T2> <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> |
| </tbody> |
| </table> |
| </div> |
| </div> |
| <div class="inheritedList"> |
| <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> |
| <a id="methods.inherited.from.class.java.lang.Object"> |
| <!-- --> |
| </a><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></div> |
| </section> |
| </li> |
| </ul> |
| </section> |
| <section class="details"> |
| <ul class="blockList"> |
| <!-- ============ FIELD DETAIL =========== --> |
| <li class="blockList"> |
| <section class="fieldDetails"><a id="field.detail"> |
| <!-- --> |
| </a> |
| <h2>Field Details</h2> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <section class="detail"> |
| <h3><a id="FUNCTION_RESULT_TYPES">FUNCTION_RESULT_TYPES</a></h3> |
| <div class="memberSignature"><span class="modifiers">public static final</span> <span class="returnType"><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>></span> <span class="memberName">FUNCTION_RESULT_TYPES</span></div> |
| </section> |
| </li> |
| </ul> |
| </section> |
| </li> |
| <!-- ============ METHOD DETAIL ========== --> |
| <li class="blockList"> |
| <section class="methodDetails"><a id="method.detail"> |
| <!-- --> |
| </a> |
| <h2>Method Details</h2> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <section class="detail"> |
| <h3><a id="constant(java.lang.Object)"> |
| <!-- --> |
| </a><a id="constant(R)">constant</a></h3> |
| <div class="memberSignature"><span class="modifiers">public static</span> <span class="typeParameters"><T,​ |
| R></span> <span class="returnType"><a href="Function1.html" title="interface in org.apache.calcite.linq4j.function">Function1</a><T,​R></span> <span class="memberName">constant</span>​(<span class="arguments">R r)</span></div> |
| <div class="block">Returns a 1-parameter function that always returns the same value.</div> |
| </section> |
| </li> |
| <li class="blockList"> |
| <section class="detail"> |
| <h3><a id="constantNull()">constantNull</a></h3> |
| <div class="memberSignature"><span class="modifiers">public static</span> <span class="typeParameters"><T,​ |
| R></span> <span class="returnType"><a href="Function1.html" title="interface in org.apache.calcite.linq4j.function">Function1</a><T,​R></span> <span class="memberName">constantNull</span>()</div> |
| <div class="block">Returns a 1-parameter function that always returns null.</div> |
| </section> |
| </li> |
| <li class="blockList"> |
| <section class="detail"> |
| <h3><a id="truePredicate1()">truePredicate1</a></h3> |
| <div class="memberSignature"><span class="modifiers">public static</span> <span class="typeParameters"><T></span> <span class="returnType"><a href="Predicate1.html" title="interface in org.apache.calcite.linq4j.function">Predicate1</a><T></span> <span class="memberName">truePredicate1</span>()</div> |
| <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> |
| </section> |
| </li> |
| <li class="blockList"> |
| <section class="detail"> |
| <h3><a id="falsePredicate1()">falsePredicate1</a></h3> |
| <div class="memberSignature"><span class="modifiers">public static</span> <span class="typeParameters"><T></span> <span class="returnType"><a href="Predicate1.html" title="interface in org.apache.calcite.linq4j.function">Predicate1</a><T></span> <span class="memberName">falsePredicate1</span>()</div> |
| <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> |
| </section> |
| </li> |
| <li class="blockList"> |
| <section class="detail"> |
| <h3><a id="truePredicate2()">truePredicate2</a></h3> |
| <div class="memberSignature"><span class="modifiers">public static</span> <span class="typeParameters"><T1,​ |
| T2></span> <span class="returnType"><a href="Predicate2.html" title="interface in org.apache.calcite.linq4j.function">Predicate2</a><T1,​T2></span> <span class="memberName">truePredicate2</span>()</div> |
| <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> |
| </section> |
| </li> |
| <li class="blockList"> |
| <section class="detail"> |
| <h3><a id="falsePredicate2()">falsePredicate2</a></h3> |
| <div class="memberSignature"><span class="modifiers">public static</span> <span class="typeParameters"><T1,​ |
| T2></span> <span class="returnType"><a href="Predicate2.html" title="interface in org.apache.calcite.linq4j.function">Predicate2</a><T1,​T2></span> <span class="memberName">falsePredicate2</span>()</div> |
| <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> |
| </section> |
| </li> |
| <li class="blockList"> |
| <section class="detail"> |
| <h3><a id="identitySelector()">identitySelector</a></h3> |
| <div class="memberSignature"><span class="modifiers">public static</span> <span class="typeParameters"><TSource></span> <span class="returnType"><a href="Function1.html" title="interface in org.apache.calcite.linq4j.function">Function1</a><TSource,​TSource></span> <span class="memberName">identitySelector</span>()</div> |
| </section> |
| </li> |
| <li class="blockList"> |
| <section class="detail"> |
| <h3><a id="toStringSelector()">toStringSelector</a></h3> |
| <div class="memberSignature"><span class="modifiers">public static</span> <span class="typeParameters"><TSource></span> <span class="returnType"><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>></span> <span class="memberName">toStringSelector</span>()</div> |
| <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> |
| </section> |
| </li> |
| <li class="blockList"> |
| <section class="detail"> |
| <h3><a id="ofTypePredicate(java.lang.Class)">ofTypePredicate</a></h3> |
| <div class="memberSignature"><span class="modifiers">public static</span> <span class="typeParameters"><T,​ |
| T2></span> <span class="returnType"><a href="Predicate1.html" title="interface in org.apache.calcite.linq4j.function">Predicate1</a><T></span> <span class="memberName">ofTypePredicate</span>​(<span class="arguments"><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)</span></div> |
| <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> |
| </section> |
| </li> |
| <li class="blockList"> |
| <section class="detail"> |
| <h3><a id="toPredicate2(org.apache.calcite.linq4j.function.Predicate1)">toPredicate2</a></h3> |
| <div class="memberSignature"><span class="modifiers">public static</span> <span class="typeParameters"><T1,​ |
| T2></span> <span class="returnType"><a href="Predicate2.html" title="interface in org.apache.calcite.linq4j.function">Predicate2</a><T1,​T2></span> <span class="memberName">toPredicate2</span>​(<span class="arguments"><a href="Predicate1.html" title="interface in org.apache.calcite.linq4j.function">Predicate1</a><T1> p1)</span></div> |
| </section> |
| </li> |
| <li class="blockList"> |
| <section class="detail"> |
| <h3><a id="toPredicate(org.apache.calcite.linq4j.function.Function2)">toPredicate</a></h3> |
| <div class="memberSignature"><span class="modifiers">public static</span> <span class="typeParameters"><T1,​ |
| T2></span> <span class="returnType"><a href="Predicate2.html" title="interface in org.apache.calcite.linq4j.function">Predicate2</a><T1,​T2></span> <span class="memberName">toPredicate</span>​(<span class="arguments"><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)</span></div> |
| <div class="block">Converts a 2-parameter function to a predicate.</div> |
| </section> |
| </li> |
| <li class="blockList"> |
| <section class="detail"> |
| <h3><a id="functionClass(java.lang.reflect.Type)">functionClass</a></h3> |
| <div class="memberSignature"><span class="modifiers">public static</span> <span class="returnType"><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>></span> <span class="memberName">functionClass</span>​(<span class="arguments"><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)</span></div> |
| <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> |
| </section> |
| </li> |
| <li class="blockList"> |
| <section class="detail"> |
| <h3><a id="adapt(org.apache.calcite.linq4j.function.IntegerFunction1)">adapt</a></h3> |
| <div class="memberSignature"><span class="modifiers">public static</span> <span class="typeParameters"><T1></span> <span class="returnType"><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>></span> <span class="memberName">adapt</span>​(<span class="arguments"><a href="IntegerFunction1.html" title="interface in org.apache.calcite.linq4j.function">IntegerFunction1</a><T1> f)</span></div> |
| <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> |
| </section> |
| </li> |
| <li class="blockList"> |
| <section class="detail"> |
| <h3><a id="adapt(org.apache.calcite.linq4j.function.DoubleFunction1)">adapt</a></h3> |
| <div class="memberSignature"><span class="modifiers">public static</span> <span class="typeParameters"><T1></span> <span class="returnType"><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>></span> <span class="memberName">adapt</span>​(<span class="arguments"><a href="DoubleFunction1.html" title="interface in org.apache.calcite.linq4j.function">DoubleFunction1</a><T1> f)</span></div> |
| <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> |
| </section> |
| </li> |
| <li class="blockList"> |
| <section class="detail"> |
| <h3><a id="adapt(org.apache.calcite.linq4j.function.LongFunction1)">adapt</a></h3> |
| <div class="memberSignature"><span class="modifiers">public static</span> <span class="typeParameters"><T1></span> <span class="returnType"><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>></span> <span class="memberName">adapt</span>​(<span class="arguments"><a href="LongFunction1.html" title="interface in org.apache.calcite.linq4j.function">LongFunction1</a><T1> f)</span></div> |
| <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> |
| </section> |
| </li> |
| <li class="blockList"> |
| <section class="detail"> |
| <h3><a id="adapt(org.apache.calcite.linq4j.function.FloatFunction1)">adapt</a></h3> |
| <div class="memberSignature"><span class="modifiers">public static</span> <span class="typeParameters"><T1></span> <span class="returnType"><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>></span> <span class="memberName">adapt</span>​(<span class="arguments"><a href="FloatFunction1.html" title="interface in org.apache.calcite.linq4j.function">FloatFunction1</a><T1> f)</span></div> |
| <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> |
| </section> |
| </li> |
| <li class="blockList"> |
| <section class="detail"> |
| <h3><a id="adapt(java.util.List,org.apache.calcite.linq4j.function.Function1)">adapt</a></h3> |
| <div class="memberSignature"><span class="annotations"><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> |
| </span><span class="modifiers">public static</span> <span class="typeParameters"><T1,​ |
| R></span> <span class="returnType"><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></span> <span class="memberName">adapt</span>​(<span class="arguments"><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)</span></div> |
| <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> |
| </section> |
| </li> |
| <li class="blockList"> |
| <section class="detail"> |
| <h3><a id="adapt(java.lang.Object[],org.apache.calcite.linq4j.function.Function1)"> |
| <!-- --> |
| </a><a id="adapt(T[],org.apache.calcite.linq4j.function.Function1)">adapt</a></h3> |
| <div class="memberSignature"><span class="annotations"><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> |
| </span><span class="modifiers">public static</span> <span class="typeParameters"><T,​ |
| R></span> <span class="returnType"><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></span> <span class="memberName">adapt</span>​(<span class="arguments">T[] ts, |
| <a href="Function1.html" title="interface in org.apache.calcite.linq4j.function">Function1</a><T,​R> f)</span></div> |
| <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> |
| </section> |
| </li> |
| <li class="blockList"> |
| <section class="detail"> |
| <h3><a id="apply(java.util.List,org.apache.calcite.linq4j.function.Function1)">apply</a></h3> |
| <div class="memberSignature"><span class="modifiers">public static</span> <span class="typeParameters"><T1,​ |
| R></span> <span class="returnType"><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></span> <span class="memberName">apply</span>​(<span class="arguments"><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)</span></div> |
| <div class="block">Creates a copy of a list, applying a function to each element.</div> |
| </section> |
| </li> |
| <li class="blockList"> |
| <section class="detail"> |
| <h3><a id="filter(java.util.List,org.apache.calcite.linq4j.function.Predicate1)">filter</a></h3> |
| <div class="memberSignature"><span class="modifiers">public static</span> <span class="typeParameters"><E></span> <span class="returnType"><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></span> <span class="memberName">filter</span>​(<span class="arguments"><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)</span></div> |
| <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> |
| </section> |
| </li> |
| <li class="blockList"> |
| <section class="detail"> |
| <h3><a id="exists(java.util.List,org.apache.calcite.linq4j.function.Predicate1)">exists</a></h3> |
| <div class="memberSignature"><span class="modifiers">public static</span> <span class="typeParameters"><E></span> <span class="returnType">boolean</span> <span class="memberName">exists</span>​(<span class="arguments"><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)</span></div> |
| <div class="block">Returns whether there is an element in <code>list</code> for which |
| <code>predicate</code> is true.</div> |
| </section> |
| </li> |
| <li class="blockList"> |
| <section class="detail"> |
| <h3><a id="all(java.util.List,org.apache.calcite.linq4j.function.Predicate1)">all</a></h3> |
| <div class="memberSignature"><span class="modifiers">public static</span> <span class="typeParameters"><E></span> <span class="returnType">boolean</span> <span class="memberName">all</span>​(<span class="arguments"><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)</span></div> |
| <div class="block">Returns whether <code>predicate</code> is true for all elements of |
| <code>list</code>.</div> |
| </section> |
| </li> |
| <li class="blockList"> |
| <section class="detail"> |
| <h3><a id="generate(int,java.util.function.IntFunction)">generate</a></h3> |
| <div class="memberSignature"><span class="modifiers">public static</span> <span class="typeParameters"><E></span> <span class="returnType"><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></span> <span class="memberName">generate</span>​(<span class="arguments">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)</span></div> |
| <div class="block">Returns a list generated by applying a function to each index between |
| 0 and <code>size</code> - 1.</div> |
| </section> |
| </li> |
| <li class="blockList"> |
| <section class="detail"> |
| <h3><a id="ignore0()">ignore0</a></h3> |
| <div class="memberSignature"><span class="modifiers">public static</span> <span class="typeParameters"><R></span> <span class="returnType"><a href="Function0.html" title="interface in org.apache.calcite.linq4j.function">Function0</a><R></span> <span class="memberName">ignore0</span>()</div> |
| <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> |
| </section> |
| </li> |
| <li class="blockList"> |
| <section class="detail"> |
| <h3><a id="ignore1()">ignore1</a></h3> |
| <div class="memberSignature"><span class="modifiers">public static</span> <span class="typeParameters"><R,​ |
| T0></span> <span class="returnType"><a href="Function1.html" title="interface in org.apache.calcite.linq4j.function">Function1</a><R,​T0></span> <span class="memberName">ignore1</span>()</div> |
| <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> |
| </section> |
| </li> |
| <li class="blockList"> |
| <section class="detail"> |
| <h3><a id="ignore2()">ignore2</a></h3> |
| <div class="memberSignature"><span class="modifiers">public static</span> <span class="typeParameters"><R,​ |
| T0,​ |
| T1></span> <span class="returnType"><a href="Function2.html" title="interface in org.apache.calcite.linq4j.function">Function2</a><R,​T0,​T1></span> <span class="memberName">ignore2</span>()</div> |
| <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> |
| </section> |
| </li> |
| <li class="blockList"> |
| <section class="detail"> |
| <h3><a id="nullsComparator(boolean,boolean)">nullsComparator</a></h3> |
| <div class="memberSignature"><span class="modifiers">public static</span> <span class="typeParameters"><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>></span> |
| <span class="returnType"><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></span> <span class="memberName">nullsComparator</span>​(<span class="arguments">boolean nullsFirst, |
| boolean reverse)</span></div> |
| <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> |
| </section> |
| </li> |
| <li class="blockList"> |
| <section class="detail"> |
| <h3><a id="nullsComparator(boolean,boolean,java.util.Comparator)">nullsComparator</a></h3> |
| <div class="memberSignature"><span class="modifiers">public static</span> <span class="typeParameters"><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>></span> |
| <span class="returnType"><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></span> <span class="memberName">nullsComparator</span>​(<span class="arguments">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)</span></div> |
| <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> |
| </section> |
| </li> |
| <li class="blockList"> |
| <section class="detail"> |
| <h3><a id="identityComparer()">identityComparer</a></h3> |
| <div class="memberSignature"><span class="modifiers">public static</span> <span class="typeParameters"><T></span> <span class="returnType"><a href="EqualityComparer.html" title="interface in org.apache.calcite.linq4j.function">EqualityComparer</a><T></span> <span class="memberName">identityComparer</span>()</div> |
| <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> |
| </section> |
| </li> |
| <li class="blockList"> |
| <section class="detail"> |
| <h3><a id="arrayComparer()">arrayComparer</a></h3> |
| <div class="memberSignature"><span class="modifiers">public static</span> <span class="typeParameters"><T></span> <span class="returnType"><a href="EqualityComparer.html" title="interface in org.apache.calcite.linq4j.function">EqualityComparer</a><T[]></span> <span class="memberName">arrayComparer</span>()</div> |
| <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> |
| </section> |
| </li> |
| <li class="blockList"> |
| <section class="detail"> |
| <h3><a id="selectorComparer(org.apache.calcite.linq4j.function.Function1)">selectorComparer</a></h3> |
| <div class="memberSignature"><span class="modifiers">public static</span> <span class="typeParameters"><T,​ |
| T2></span> <span class="returnType"><a href="EqualityComparer.html" title="interface in org.apache.calcite.linq4j.function">EqualityComparer</a><T></span> <span class="memberName">selectorComparer</span>​(<span class="arguments"><a href="Function1.html" title="interface in org.apache.calcite.linq4j.function">Function1</a><T,​T2> selector)</span></div> |
| <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> |
| </section> |
| </li> |
| </ul> |
| </section> |
| </li> |
| </ul> |
| </section> |
| </div> |
| <!-- ========= END OF CLASS DATA ========= --> |
| </main> |
| <footer role="contentinfo"> |
| <nav role="navigation"> |
| <!-- ======= START OF BOTTOM NAVBAR ====== --> |
| <div class="bottomNav"><a id="navbar.bottom"> |
| <!-- --> |
| </a> |
| <div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div> |
| <a id="navbar.bottom.firstrow"> |
| <!-- --> |
| </a> |
| <ul class="navList" title="Navigation"> |
| <li><a href="../../../../../index.html">Overview</a></li> |
| <li><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"> |
| <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> |
| </div> |
| <a id="skip.navbar.bottom"> |
| <!-- --> |
| </a> |
| <!-- ======== END OF BOTTOM NAVBAR ======= --> |
| </nav> |
| <p class="legalCopy"><small>Copyright © 2012-2021 Apache Software Foundation. All Rights Reserved.</small></p> |
| </footer> |
| </div> |
| </div> |
| </body> |
| </html> |