blob: 1ade2947a5470e2da601f03ab72c6b24fbebbe71 [file] [log] [blame]
<!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:&nbsp;</li>
<li>Nested&nbsp;|&nbsp;</li>
<li><a href="#field.summary">Field</a>&nbsp;|&nbsp;</li>
<li>Constr&nbsp;|&nbsp;</li>
<li><a href="#method.summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail:&nbsp;</li>
<li><a href="#field.detail">Field</a>&nbsp;|&nbsp;</li>
<li>Constr&nbsp;|&nbsp;</li>
<li><a href="#method.detail">Method</a></li>
</ul>
</div>
<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>&nbsp;<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">&nbsp;</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>&lt;<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>&lt;? extends <a href="Function.html" title="interface in org.apache.calcite.linq4j.function">Function</a>&gt;,&#8203;<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>&gt;</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">&nbsp;</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 &lt;T1,&#8203;
R&gt;&nbsp;<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>&lt;R&gt;</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>&#8203;(<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>&lt;T1&gt;&nbsp;list,
<a href="Function1.html" title="interface in org.apache.calcite.linq4j.function">Function1</a>&lt;T1,&#8203;R&gt;&nbsp;f)</code></th>
<td class="colLast">
<div class="block"><span class="deprecatedLabel">Deprecated.</span>
<div class="deprecationComment">Use <code>Lists.transform(java.util.List&lt;F&gt;, com.google.common.base.Function&lt;? super F, ? extends T&gt;)</code></div>
</div>
</td>
</tr>
<tr class="rowColor" id="i1">
<td class="colFirst"><code>static &lt;T1&gt;&nbsp;<a href="Function1.html" title="interface in org.apache.calcite.linq4j.function">Function1</a>&lt;T1,&#8203;<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>&gt;</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#adapt(org.apache.calcite.linq4j.function.DoubleFunction1)">adapt</a></span>&#8203;(<a href="DoubleFunction1.html" title="interface in org.apache.calcite.linq4j.function">DoubleFunction1</a>&lt;T1&gt;&nbsp;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 &lt;T1&gt;&nbsp;<a href="Function1.html" title="interface in org.apache.calcite.linq4j.function">Function1</a>&lt;T1,&#8203;<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>&gt;</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#adapt(org.apache.calcite.linq4j.function.FloatFunction1)">adapt</a></span>&#8203;(<a href="FloatFunction1.html" title="interface in org.apache.calcite.linq4j.function">FloatFunction1</a>&lt;T1&gt;&nbsp;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 &lt;T1&gt;&nbsp;<a href="Function1.html" title="interface in org.apache.calcite.linq4j.function">Function1</a>&lt;T1,&#8203;<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>&gt;</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#adapt(org.apache.calcite.linq4j.function.IntegerFunction1)">adapt</a></span>&#8203;(<a href="IntegerFunction1.html" title="interface in org.apache.calcite.linq4j.function">IntegerFunction1</a>&lt;T1&gt;&nbsp;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 &lt;T1&gt;&nbsp;<a href="Function1.html" title="interface in org.apache.calcite.linq4j.function">Function1</a>&lt;T1,&#8203;<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>&gt;</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#adapt(org.apache.calcite.linq4j.function.LongFunction1)">adapt</a></span>&#8203;(<a href="LongFunction1.html" title="interface in org.apache.calcite.linq4j.function">LongFunction1</a>&lt;T1&gt;&nbsp;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 &lt;T,&#8203;
R&gt;&nbsp;<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>&lt;R&gt;</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>&#8203;(T[]&nbsp;ts,
<a href="Function1.html" title="interface in org.apache.calcite.linq4j.function">Function1</a>&lt;T,&#8203;R&gt;&nbsp;f)</code></th>
<td class="colLast">
<div class="block"><span class="deprecatedLabel">Deprecated.</span>
<div class="deprecationComment">Use <code>Lists.transform(java.util.List&lt;F&gt;, com.google.common.base.Function&lt;? super F, ? extends T&gt;)</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 &lt;E&gt;&nbsp;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>&#8203;(<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>&lt;? extends E&gt;&nbsp;list,
<a href="Predicate1.html" title="interface in org.apache.calcite.linq4j.function">Predicate1</a>&lt;E&gt;&nbsp;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 &lt;T1,&#8203;
R&gt;&nbsp;<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>&lt;R&gt;</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>&#8203;(<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>&lt;T1&gt;&nbsp;list,
<a href="Function1.html" title="interface in org.apache.calcite.linq4j.function">Function1</a>&lt;T1,&#8203;R&gt;&nbsp;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 &lt;T&gt;&nbsp;<a href="EqualityComparer.html" title="interface in org.apache.calcite.linq4j.function">EqualityComparer</a>&lt;T[]&gt;</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 &lt;T,&#8203;
R&gt;&nbsp;<a href="Function1.html" title="interface in org.apache.calcite.linq4j.function">Function1</a>&lt;T,&#8203;R&gt;</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#constant(R)">constant</a></span>&#8203;(R&nbsp;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 &lt;T,&#8203;
R&gt;&nbsp;<a href="Function1.html" title="interface in org.apache.calcite.linq4j.function">Function1</a>&lt;T,&#8203;R&gt;</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 &lt;E&gt;&nbsp;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>&#8203;(<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>&lt;? extends E&gt;&nbsp;list,
<a href="Predicate1.html" title="interface in org.apache.calcite.linq4j.function">Predicate1</a>&lt;E&gt;&nbsp;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 &lt;T&gt;&nbsp;<a href="Predicate1.html" title="interface in org.apache.calcite.linq4j.function">Predicate1</a>&lt;T&gt;</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 &lt;T1,&#8203;
T2&gt;&nbsp;<a href="Predicate2.html" title="interface in org.apache.calcite.linq4j.function">Predicate2</a>&lt;T1,&#8203;T2&gt;</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 &lt;E&gt;&nbsp;<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>&lt;E&gt;</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>&#8203;(<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>&lt;E&gt;&nbsp;list,
<a href="Predicate1.html" title="interface in org.apache.calcite.linq4j.function">Predicate1</a>&lt;E&gt;&nbsp;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>&lt;? extends <a href="Function.html" title="interface in org.apache.calcite.linq4j.function">Function</a>&gt;</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#functionClass(java.lang.reflect.Type)">functionClass</a></span>&#8203;(<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>&nbsp;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 &lt;E&gt;&nbsp;<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>&lt;E&gt;</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#generate(int,java.util.function.IntFunction)">generate</a></span>&#8203;(int&nbsp;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>&lt;E&gt;&nbsp;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 &lt;T&gt;&nbsp;<a href="EqualityComparer.html" title="interface in org.apache.calcite.linq4j.function">EqualityComparer</a>&lt;T&gt;</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 &lt;TSource&gt;&nbsp;<a href="Function1.html" title="interface in org.apache.calcite.linq4j.function">Function1</a>&lt;TSource,&#8203;TSource&gt;</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#identitySelector()">identitySelector</a></span>()</code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr class="rowColor" id="i19">
<td class="colFirst"><code>static &lt;R&gt;&nbsp;<a href="Function0.html" title="interface in org.apache.calcite.linq4j.function">Function0</a>&lt;R&gt;</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 &lt;R,&#8203;
T0&gt;&nbsp;<a href="Function1.html" title="interface in org.apache.calcite.linq4j.function">Function1</a>&lt;R,&#8203;T0&gt;</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 &lt;R,&#8203;
T0,&#8203;
T1&gt;&nbsp;<a href="Function2.html" title="interface in org.apache.calcite.linq4j.function">Function2</a>&lt;R,&#8203;T0,&#8203;T1&gt;</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 &lt;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>&lt;T&gt;&gt;<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>&lt;T&gt;</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#nullsComparator(boolean,boolean)">nullsComparator</a></span>&#8203;(boolean&nbsp;nullsFirst,
boolean&nbsp;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 &lt;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>&lt;T&gt;&gt;<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>&lt;T&gt;</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#nullsComparator(boolean,boolean,java.util.Comparator)">nullsComparator</a></span>&#8203;(boolean&nbsp;nullsFirst,
boolean&nbsp;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>&lt;T&gt;&nbsp;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 &lt;T,&#8203;
T2&gt;&nbsp;<a href="Predicate1.html" title="interface in org.apache.calcite.linq4j.function">Predicate1</a>&lt;T&gt;</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#ofTypePredicate(java.lang.Class)">ofTypePredicate</a></span>&#8203;(<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>&lt;T2&gt;&nbsp;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 &lt;T,&#8203;
T2&gt;&nbsp;<a href="EqualityComparer.html" title="interface in org.apache.calcite.linq4j.function">EqualityComparer</a>&lt;T&gt;</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#selectorComparer(org.apache.calcite.linq4j.function.Function1)">selectorComparer</a></span>&#8203;(<a href="Function1.html" title="interface in org.apache.calcite.linq4j.function">Function1</a>&lt;T,&#8203;T2&gt;&nbsp;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 &lt;T1,&#8203;
T2&gt;&nbsp;<a href="Predicate2.html" title="interface in org.apache.calcite.linq4j.function">Predicate2</a>&lt;T1,&#8203;T2&gt;</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#toPredicate(org.apache.calcite.linq4j.function.Function2)">toPredicate</a></span>&#8203;(<a href="Function2.html" title="interface in org.apache.calcite.linq4j.function">Function2</a>&lt;T1,&#8203;T2,&#8203;<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>&gt;&nbsp;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 &lt;T1,&#8203;
T2&gt;&nbsp;<a href="Predicate2.html" title="interface in org.apache.calcite.linq4j.function">Predicate2</a>&lt;T1,&#8203;T2&gt;</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#toPredicate2(org.apache.calcite.linq4j.function.Predicate1)">toPredicate2</a></span>&#8203;(<a href="Predicate1.html" title="interface in org.apache.calcite.linq4j.function">Predicate1</a>&lt;T1&gt;&nbsp;p1)</code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr class="altColor" id="i28">
<td class="colFirst"><code>static &lt;TSource&gt;&nbsp;<a href="Function1.html" title="interface in org.apache.calcite.linq4j.function">Function1</a>&lt;TSource,&#8203;<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>&gt;</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 &lt;T&gt;&nbsp;<a href="Predicate1.html" title="interface in org.apache.calcite.linq4j.function">Predicate1</a>&lt;T&gt;</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 &lt;T1,&#8203;
T2&gt;&nbsp;<a href="Predicate2.html" title="interface in org.apache.calcite.linq4j.function">Predicate2</a>&lt;T1,&#8203;T2&gt;</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&nbsp;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>&nbsp;<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>&lt;<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>&lt;? extends <a href="Function.html" title="interface in org.apache.calcite.linq4j.function">Function</a>&gt;,&#8203;<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>&gt;</span>&nbsp;<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>&nbsp;<span class="typeParameters">&lt;T,&#8203;
R&gt;</span>&nbsp;<span class="returnType"><a href="Function1.html" title="interface in org.apache.calcite.linq4j.function">Function1</a>&lt;T,&#8203;R&gt;</span>&nbsp;<span class="memberName">constant</span>&#8203;(<span class="arguments">R&nbsp;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>&nbsp;<span class="typeParameters">&lt;T,&#8203;
R&gt;</span>&nbsp;<span class="returnType"><a href="Function1.html" title="interface in org.apache.calcite.linq4j.function">Function1</a>&lt;T,&#8203;R&gt;</span>&nbsp;<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>&nbsp;<span class="typeParameters">&lt;T&gt;</span>&nbsp;<span class="returnType"><a href="Predicate1.html" title="interface in org.apache.calcite.linq4j.function">Predicate1</a>&lt;T&gt;</span>&nbsp;<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>&nbsp;<span class="typeParameters">&lt;T&gt;</span>&nbsp;<span class="returnType"><a href="Predicate1.html" title="interface in org.apache.calcite.linq4j.function">Predicate1</a>&lt;T&gt;</span>&nbsp;<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>&nbsp;<span class="typeParameters">&lt;T1,&#8203;
T2&gt;</span>&nbsp;<span class="returnType"><a href="Predicate2.html" title="interface in org.apache.calcite.linq4j.function">Predicate2</a>&lt;T1,&#8203;T2&gt;</span>&nbsp;<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>&nbsp;<span class="typeParameters">&lt;T1,&#8203;
T2&gt;</span>&nbsp;<span class="returnType"><a href="Predicate2.html" title="interface in org.apache.calcite.linq4j.function">Predicate2</a>&lt;T1,&#8203;T2&gt;</span>&nbsp;<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>&nbsp;<span class="typeParameters">&lt;TSource&gt;</span>&nbsp;<span class="returnType"><a href="Function1.html" title="interface in org.apache.calcite.linq4j.function">Function1</a>&lt;TSource,&#8203;TSource&gt;</span>&nbsp;<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>&nbsp;<span class="typeParameters">&lt;TSource&gt;</span>&nbsp;<span class="returnType"><a href="Function1.html" title="interface in org.apache.calcite.linq4j.function">Function1</a>&lt;TSource,&#8203;<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>&gt;</span>&nbsp;<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>&nbsp;<span class="typeParameters">&lt;T,&#8203;
T2&gt;</span>&nbsp;<span class="returnType"><a href="Predicate1.html" title="interface in org.apache.calcite.linq4j.function">Predicate1</a>&lt;T&gt;</span>&nbsp;<span class="memberName">ofTypePredicate</span>&#8203;(<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>&lt;T2&gt;&nbsp;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>&nbsp;<span class="typeParameters">&lt;T1,&#8203;
T2&gt;</span>&nbsp;<span class="returnType"><a href="Predicate2.html" title="interface in org.apache.calcite.linq4j.function">Predicate2</a>&lt;T1,&#8203;T2&gt;</span>&nbsp;<span class="memberName">toPredicate2</span>&#8203;(<span class="arguments"><a href="Predicate1.html" title="interface in org.apache.calcite.linq4j.function">Predicate1</a>&lt;T1&gt;&nbsp;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>&nbsp;<span class="typeParameters">&lt;T1,&#8203;
T2&gt;</span>&nbsp;<span class="returnType"><a href="Predicate2.html" title="interface in org.apache.calcite.linq4j.function">Predicate2</a>&lt;T1,&#8203;T2&gt;</span>&nbsp;<span class="memberName">toPredicate</span>&#8203;(<span class="arguments"><a href="Function2.html" title="interface in org.apache.calcite.linq4j.function">Function2</a>&lt;T1,&#8203;T2,&#8203;<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>&gt;&nbsp;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>&nbsp;<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>&lt;? extends <a href="Function.html" title="interface in org.apache.calcite.linq4j.function">Function</a>&gt;</span>&nbsp;<span class="memberName">functionClass</span>&#8203;(<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>&nbsp;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>&nbsp;<span class="typeParameters">&lt;T1&gt;</span>&nbsp;<span class="returnType"><a href="Function1.html" title="interface in org.apache.calcite.linq4j.function">Function1</a>&lt;T1,&#8203;<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>&gt;</span>&nbsp;<span class="memberName">adapt</span>&#8203;(<span class="arguments"><a href="IntegerFunction1.html" title="interface in org.apache.calcite.linq4j.function">IntegerFunction1</a>&lt;T1&gt;&nbsp;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>&nbsp;<span class="typeParameters">&lt;T1&gt;</span>&nbsp;<span class="returnType"><a href="Function1.html" title="interface in org.apache.calcite.linq4j.function">Function1</a>&lt;T1,&#8203;<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>&gt;</span>&nbsp;<span class="memberName">adapt</span>&#8203;(<span class="arguments"><a href="DoubleFunction1.html" title="interface in org.apache.calcite.linq4j.function">DoubleFunction1</a>&lt;T1&gt;&nbsp;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>&nbsp;<span class="typeParameters">&lt;T1&gt;</span>&nbsp;<span class="returnType"><a href="Function1.html" title="interface in org.apache.calcite.linq4j.function">Function1</a>&lt;T1,&#8203;<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>&gt;</span>&nbsp;<span class="memberName">adapt</span>&#8203;(<span class="arguments"><a href="LongFunction1.html" title="interface in org.apache.calcite.linq4j.function">LongFunction1</a>&lt;T1&gt;&nbsp;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>&nbsp;<span class="typeParameters">&lt;T1&gt;</span>&nbsp;<span class="returnType"><a href="Function1.html" title="interface in org.apache.calcite.linq4j.function">Function1</a>&lt;T1,&#8203;<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>&gt;</span>&nbsp;<span class="memberName">adapt</span>&#8203;(<span class="arguments"><a href="FloatFunction1.html" title="interface in org.apache.calcite.linq4j.function">FloatFunction1</a>&lt;T1&gt;&nbsp;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>&nbsp;<span class="typeParameters">&lt;T1,&#8203;
R&gt;</span>&nbsp;<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>&lt;R&gt;</span>&nbsp;<span class="memberName">adapt</span>&#8203;(<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>&lt;T1&gt;&nbsp;list,
<a href="Function1.html" title="interface in org.apache.calcite.linq4j.function">Function1</a>&lt;T1,&#8203;R&gt;&nbsp;f)</span></div>
<div class="deprecationBlock"><span class="deprecatedLabel">Deprecated.</span>
<div class="deprecationComment">Use <code>Lists.transform(java.util.List&lt;F&gt;, com.google.common.base.Function&lt;? super F, ? extends T&gt;)</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>&nbsp;<span class="typeParameters">&lt;T,&#8203;
R&gt;</span>&nbsp;<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>&lt;R&gt;</span>&nbsp;<span class="memberName">adapt</span>&#8203;(<span class="arguments">T[]&nbsp;ts,
<a href="Function1.html" title="interface in org.apache.calcite.linq4j.function">Function1</a>&lt;T,&#8203;R&gt;&nbsp;f)</span></div>
<div class="deprecationBlock"><span class="deprecatedLabel">Deprecated.</span>
<div class="deprecationComment">Use <code>Lists.transform(java.util.List&lt;F&gt;, com.google.common.base.Function&lt;? super F, ? extends T&gt;)</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>&nbsp;<span class="typeParameters">&lt;T1,&#8203;
R&gt;</span>&nbsp;<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>&lt;R&gt;</span>&nbsp;<span class="memberName">apply</span>&#8203;(<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>&lt;T1&gt;&nbsp;list,
<a href="Function1.html" title="interface in org.apache.calcite.linq4j.function">Function1</a>&lt;T1,&#8203;R&gt;&nbsp;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>&nbsp;<span class="typeParameters">&lt;E&gt;</span>&nbsp;<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>&lt;E&gt;</span>&nbsp;<span class="memberName">filter</span>&#8203;(<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>&lt;E&gt;&nbsp;list,
<a href="Predicate1.html" title="interface in org.apache.calcite.linq4j.function">Predicate1</a>&lt;E&gt;&nbsp;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>&nbsp;<span class="typeParameters">&lt;E&gt;</span>&nbsp;<span class="returnType">boolean</span>&nbsp;<span class="memberName">exists</span>&#8203;(<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>&lt;? extends E&gt;&nbsp;list,
<a href="Predicate1.html" title="interface in org.apache.calcite.linq4j.function">Predicate1</a>&lt;E&gt;&nbsp;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>&nbsp;<span class="typeParameters">&lt;E&gt;</span>&nbsp;<span class="returnType">boolean</span>&nbsp;<span class="memberName">all</span>&#8203;(<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>&lt;? extends E&gt;&nbsp;list,
<a href="Predicate1.html" title="interface in org.apache.calcite.linq4j.function">Predicate1</a>&lt;E&gt;&nbsp;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>&nbsp;<span class="typeParameters">&lt;E&gt;</span>&nbsp;<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>&lt;E&gt;</span>&nbsp;<span class="memberName">generate</span>&#8203;(<span class="arguments">int&nbsp;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>&lt;E&gt;&nbsp;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>&nbsp;<span class="typeParameters">&lt;R&gt;</span>&nbsp;<span class="returnType"><a href="Function0.html" title="interface in org.apache.calcite.linq4j.function">Function0</a>&lt;R&gt;</span>&nbsp;<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>&nbsp;<span class="typeParameters">&lt;R,&#8203;
T0&gt;</span>&nbsp;<span class="returnType"><a href="Function1.html" title="interface in org.apache.calcite.linq4j.function">Function1</a>&lt;R,&#8203;T0&gt;</span>&nbsp;<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>&nbsp;<span class="typeParameters">&lt;R,&#8203;
T0,&#8203;
T1&gt;</span>&nbsp;<span class="returnType"><a href="Function2.html" title="interface in org.apache.calcite.linq4j.function">Function2</a>&lt;R,&#8203;T0,&#8203;T1&gt;</span>&nbsp;<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>&nbsp;<span class="typeParameters">&lt;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>&lt;T&gt;&gt;</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>&lt;T&gt;</span>&nbsp;<span class="memberName">nullsComparator</span>&#8203;(<span class="arguments">boolean&nbsp;nullsFirst,
boolean&nbsp;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>&nbsp;<span class="typeParameters">&lt;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>&lt;T&gt;&gt;</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>&lt;T&gt;</span>&nbsp;<span class="memberName">nullsComparator</span>&#8203;(<span class="arguments">boolean&nbsp;nullsFirst,
boolean&nbsp;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>&lt;T&gt;&nbsp;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>&nbsp;<span class="typeParameters">&lt;T&gt;</span>&nbsp;<span class="returnType"><a href="EqualityComparer.html" title="interface in org.apache.calcite.linq4j.function">EqualityComparer</a>&lt;T&gt;</span>&nbsp;<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>&nbsp;<span class="typeParameters">&lt;T&gt;</span>&nbsp;<span class="returnType"><a href="EqualityComparer.html" title="interface in org.apache.calcite.linq4j.function">EqualityComparer</a>&lt;T[]&gt;</span>&nbsp;<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>&nbsp;<span class="typeParameters">&lt;T,&#8203;
T2&gt;</span>&nbsp;<span class="returnType"><a href="EqualityComparer.html" title="interface in org.apache.calcite.linq4j.function">EqualityComparer</a>&lt;T&gt;</span>&nbsp;<span class="memberName">selectorComparer</span>&#8203;(<span class="arguments"><a href="Function1.html" title="interface in org.apache.calcite.linq4j.function">Function1</a>&lt;T,&#8203;T2&gt;&nbsp;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:&nbsp;</li>
<li>Nested&nbsp;|&nbsp;</li>
<li><a href="#field.summary">Field</a>&nbsp;|&nbsp;</li>
<li>Constr&nbsp;|&nbsp;</li>
<li><a href="#method.summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail:&nbsp;</li>
<li><a href="#field.detail">Field</a>&nbsp;|&nbsp;</li>
<li>Constr&nbsp;|&nbsp;</li>
<li><a href="#method.detail">Method</a></li>
</ul>
</div>
</div>
<a id="skip.navbar.bottom">
<!-- -->
</a>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
</nav>
<p class="legalCopy"><small>Copyright &copy; 2012-2021 Apache Software Foundation. All Rights Reserved.</small></p>
</footer>
</div>
</div>
</body>
</html>