Uses of Interface
org.apache.calcite.linq4j.function.Predicate1
-
Packages that use Predicate1 Package Description org.apache.calcite.jdbc JDBC driver for Calcite.org.apache.calcite.linq4j Language-integrated query for Java (linq4j) main package.org.apache.calcite.linq4j.function Contains definitions of functions and predicates.org.apache.calcite.prepare Preparation of queries (parsing, planning and implementation).org.apache.calcite.rex Provides a language for representing row-expressions. -
-
Uses of Predicate1 in org.apache.calcite.jdbc
Methods in org.apache.calcite.jdbc that return Predicate1 Modifier and Type Method Description (package private) static Predicate1<java.lang.String>
CalciteMetaImpl. matcher(org.apache.calcite.avatica.Meta.Pat pattern)
(package private) static <T extends org.apache.calcite.avatica.MetaImpl.Named>
Predicate1<T>CalciteMetaImpl. namedMatcher(org.apache.calcite.avatica.Meta.Pat pattern)
Methods in org.apache.calcite.jdbc with parameters of type Predicate1 Modifier and Type Method Description (package private) Enumerable<org.apache.calcite.avatica.MetaImpl.MetaTable>
CalciteMetaImpl. tables(org.apache.calcite.avatica.MetaImpl.MetaSchema schema, Predicate1<java.lang.String> matcher)
-
Uses of Predicate1 in org.apache.calcite.linq4j
Methods in org.apache.calcite.linq4j with parameters of type Predicate1 Modifier and Type Method Description boolean
DefaultEnumerable. all(Predicate1<T> predicate)
static <TSource> boolean
EnumerableDefaults. all(Enumerable<TSource> enumerable, Predicate1<TSource> predicate)
Determines whether all elements of a sequence satisfy a condition.boolean
ExtendedEnumerable. all(Predicate1<TSource> predicate)
Determines whether all elements of a sequence satisfy a condition.boolean
DefaultEnumerable. any(Predicate1<T> predicate)
static <TSource> boolean
EnumerableDefaults. any(Enumerable<TSource> enumerable, Predicate1<TSource> predicate)
Determines whether any element of a sequence satisfies a condition.boolean
ExtendedEnumerable. any(Predicate1<TSource> predicate)
Determines whether any element of a sequence satisfies a condition.int
DefaultEnumerable. count(Predicate1<T> predicate)
static <TSource> int
EnumerableDefaults. count(Enumerable<TSource> enumerable, Predicate1<TSource> predicate)
Returns a number that represents how many elements in the specified sequence satisfy a condition.int
ExtendedEnumerable. count(Predicate1<TSource> predicate)
Returns a number that represents how many elements in the specified sequence satisfy a condition.T
DefaultEnumerable. first(Predicate1<T> predicate)
static <TSource> TSource
EnumerableDefaults. first(Enumerable<TSource> enumerable, Predicate1<TSource> predicate)
Returns the first element in a sequence that satisfies a specified condition.TSource
ExtendedEnumerable. first(Predicate1<TSource> predicate)
Returns the first element in a sequence that satisfies a specified condition.T
DefaultEnumerable. firstOrDefault(Predicate1<T> predicate)
static <TSource> TSource
EnumerableDefaults. firstOrDefault(Enumerable<TSource> enumerable, Predicate1<TSource> predicate)
Returns the first element of the sequence that satisfies a condition or a default value if no such element is found.TSource
ExtendedEnumerable. firstOrDefault(Predicate1<TSource> predicate)
Returns the first element of the sequence that satisfies a condition or a default value if no such element is found.T
DefaultEnumerable. last(Predicate1<T> predicate)
static <TSource> TSource
EnumerableDefaults. last(Enumerable<TSource> enumerable, Predicate1<TSource> predicate)
Returns the last element of a sequence that satisfies a specified condition.TSource
ExtendedEnumerable. last(Predicate1<TSource> predicate)
Returns the last element of a sequence that satisfies a specified condition.T
DefaultEnumerable. lastOrDefault(Predicate1<T> predicate)
static <TSource> TSource
EnumerableDefaults. lastOrDefault(Enumerable<TSource> enumerable, Predicate1<TSource> predicate)
Returns the last element of a sequence that satisfies a condition or a default value if no such element is found.TSource
ExtendedEnumerable. lastOrDefault(Predicate1<TSource> predicate)
Returns the last element of a sequence that satisfies a condition or a default value if no such element is found.long
DefaultEnumerable. longCount(Predicate1<T> predicate)
static <TSource> long
EnumerableDefaults. longCount(Enumerable<TSource> enumerable, Predicate1<TSource> predicate)
Returns an long that represents how many elements in a sequence satisfy a condition.long
ExtendedEnumerable. longCount(Predicate1<TSource> predicate)
Returns an long that represents how many elements in a sequence satisfy a condition.T
DefaultEnumerable. single(Predicate1<T> predicate)
static <TSource> TSource
EnumerableDefaults. single(Enumerable<TSource> source, Predicate1<TSource> predicate)
Returns the only element of a sequence that satisfies a specified condition, and throws an exception if more than one such element exists.TSource
ExtendedEnumerable. single(Predicate1<TSource> predicate)
Returns the only element of a sequence that satisfies a specified condition, and throws an exception if more than one such element exists.T
DefaultEnumerable. singleOrDefault(Predicate1<T> predicate)
static <TSource> TSource
EnumerableDefaults. singleOrDefault(Enumerable<TSource> source, Predicate1<TSource> predicate)
Returns the only element of a sequence that satisfies a specified condition or a default value if no such element exists; this method throws an exception if more than one element satisfies the condition.TSource
ExtendedEnumerable. singleOrDefault(Predicate1<TSource> predicate)
Returns the only element of a sequence that satisfies a specified condition or a default value if no such element exists; this method throws an exception if more than one element satisfies the condition.Enumerable<T>
DefaultEnumerable. skipWhile(Predicate1<T> predicate)
static <TSource> Enumerable<TSource>
EnumerableDefaults. skipWhile(Enumerable<TSource> source, Predicate1<TSource> predicate)
Bypasses elements in a sequence as long as a specified condition is true and then returns the remaining elements.Enumerable<TSource>
ExtendedEnumerable. skipWhile(Predicate1<TSource> predicate)
Bypasses elements in a sequence as long as a specified condition is true and then returns the remaining elements.Enumerable<T>
DefaultEnumerable. takeWhile(Predicate1<T> predicate)
static <TSource> Enumerable<TSource>
EnumerableDefaults. takeWhile(Enumerable<TSource> source, Predicate1<TSource> predicate)
Returns elements from a sequence as long as a specified condition is true.Enumerable<TSource>
ExtendedEnumerable. takeWhile(Predicate1<TSource> predicate)
Returns elements from a sequence as long as a specified condition is true.Enumerable<T>
DefaultEnumerable. where(Predicate1<T> predicate)
static <TSource> Enumerable<TSource>
EnumerableDefaults. where(Enumerable<TSource> source, Predicate1<TSource> predicate)
Filters a sequence of values based on a predicate.private static <TSource> Enumerator<TSource>
EnumerableDefaults. where(Enumerator<TSource> enumerator, Predicate1<TSource> predicate)
Enumerable<TSource>
ExtendedEnumerable. where(Predicate1<TSource> predicate)
Filters a sequence of values based on a predicate.Method parameters in org.apache.calcite.linq4j with type arguments of type Predicate1 Modifier and Type Method Description boolean
DefaultQueryable. all(FunctionExpression<Predicate1<T>> predicate)
boolean
EnumerableQueryable. all(FunctionExpression<Predicate1<T>> predicate)
boolean
ExtendedQueryable. all(FunctionExpression<Predicate1<TSource>> predicate)
Determines whether all the elements of a sequence satisfy a condition.static <T> boolean
QueryableDefaults. all(Queryable<T> queryable, FunctionExpression<Predicate1<T>> predicate)
Determines whether all the elements of a sequence satisfy a condition.boolean
QueryableFactory. all(Queryable<T> source, FunctionExpression<Predicate1<T>> predicate)
Determines whether all the elements of a sequence satisfy a condition.boolean
QueryableRecorder. all(Queryable<T> source, FunctionExpression<Predicate1<T>> predicate)
boolean
DefaultQueryable. any(FunctionExpression<Predicate1<T>> predicate)
boolean
EnumerableQueryable. any(FunctionExpression<Predicate1<T>> predicate)
boolean
ExtendedQueryable. any(FunctionExpression<Predicate1<TSource>> predicate)
Determines whether any element of a sequence satisfies a condition.static <T> boolean
QueryableDefaults. any(Queryable<T> queryable, FunctionExpression<Predicate1<T>> predicate)
Determines whether any element of a sequence satisfies a condition.boolean
QueryableFactory. any(Queryable<T> source, FunctionExpression<Predicate1<T>> predicate)
Determines whether any element of a sequence satisfies a condition.boolean
QueryableRecorder. any(Queryable<T> source, FunctionExpression<Predicate1<T>> predicate)
int
DefaultQueryable. count(FunctionExpression<Predicate1<T>> func)
int
EnumerableQueryable. count(FunctionExpression<Predicate1<T>> predicate)
int
ExtendedQueryable. count(FunctionExpression<Predicate1<TSource>> predicate)
Returns the number of elements in the specified sequence that satisfies a condition.static <T> int
QueryableDefaults. count(Queryable<T> queryable, FunctionExpression<Predicate1<T>> func)
Returns the number of elements in the specified sequence that satisfies a condition.int
QueryableFactory. count(Queryable<T> source, FunctionExpression<Predicate1<T>> predicate)
Returns the number of elements in the specified sequence that satisfies a condition.int
QueryableRecorder. count(Queryable<T> source, FunctionExpression<Predicate1<T>> func)
T
DefaultQueryable. first(FunctionExpression<Predicate1<T>> predicate)
T
EnumerableQueryable. first(FunctionExpression<Predicate1<T>> predicate)
TSource
ExtendedQueryable. first(FunctionExpression<Predicate1<TSource>> predicate)
Returns the first element of a sequence that satisfies a specified condition.static <T> T
QueryableDefaults. first(Queryable<T> queryable, FunctionExpression<Predicate1<T>> predicate)
Returns the first element of a sequence that satisfies a specified condition.T
QueryableFactory. first(Queryable<T> source, FunctionExpression<Predicate1<T>> predicate)
Returns the first element of a sequence that satisfies a specified condition.T
QueryableRecorder. first(Queryable<T> source, FunctionExpression<Predicate1<T>> predicate)
T
DefaultQueryable. firstOrDefault(FunctionExpression<Predicate1<T>> predicate)
T
EnumerableQueryable. firstOrDefault(FunctionExpression<Predicate1<T>> predicate)
TSource
ExtendedQueryable. firstOrDefault(FunctionExpression<Predicate1<TSource>> predicate)
Returns the first element of a sequence that satisfies a specified condition or a default value if no such element is found.static <T> T
QueryableDefaults. firstOrDefault(Queryable<T> queryable, FunctionExpression<Predicate1<T>> predicate)
Returns the first element of a sequence that satisfies a specified condition or a default value if no such element is found.T
QueryableFactory. firstOrDefault(Queryable<T> source, FunctionExpression<Predicate1<T>> predicate)
Returns the first element of a sequence that satisfies a specified condition or a default value if no such element is found.T
QueryableRecorder. firstOrDefault(Queryable<T> source, FunctionExpression<Predicate1<T>> predicate)
T
DefaultQueryable. last(FunctionExpression<Predicate1<T>> predicate)
T
EnumerableQueryable. last(FunctionExpression<Predicate1<T>> predicate)
TSource
ExtendedQueryable. last(FunctionExpression<Predicate1<TSource>> predicate)
Returns the last element of a sequence that satisfies a specified condition.static <T> T
QueryableDefaults. last(Queryable<T> queryable, FunctionExpression<Predicate1<T>> predicate)
Returns the last element of a sequence that satisfies a specified condition.T
QueryableFactory. last(Queryable<T> source, FunctionExpression<Predicate1<T>> predicate)
Returns the last element of a sequence that satisfies a specified condition.T
QueryableRecorder. last(Queryable<T> source, FunctionExpression<Predicate1<T>> predicate)
T
DefaultQueryable. lastOrDefault(FunctionExpression<Predicate1<T>> predicate)
T
EnumerableQueryable. lastOrDefault(FunctionExpression<Predicate1<T>> predicate)
TSource
ExtendedQueryable. lastOrDefault(FunctionExpression<Predicate1<TSource>> predicate)
Returns the last element of a sequence that satisfies a condition or a default value if no such element is found.static <T> T
QueryableDefaults. lastOrDefault(Queryable<T> queryable, FunctionExpression<Predicate1<T>> predicate)
Returns the last element of a sequence that satisfies a condition or a default value if no such element is found.T
QueryableFactory. lastOrDefault(Queryable<T> source, FunctionExpression<Predicate1<T>> predicate)
Returns the last element of a sequence that satisfies a condition or a default value if no such element is found.T
QueryableRecorder. lastOrDefault(Queryable<T> source, FunctionExpression<Predicate1<T>> predicate)
long
DefaultQueryable. longCount(FunctionExpression<Predicate1<T>> predicate)
long
EnumerableQueryable. longCount(FunctionExpression<Predicate1<T>> predicate)
long
ExtendedQueryable. longCount(FunctionExpression<Predicate1<TSource>> predicate)
Returns an long that represents the number of elements in a sequence that satisfy a condition.static <T> long
QueryableDefaults. longCount(Queryable<T> queryable, FunctionExpression<Predicate1<T>> predicate)
Returns an long that represents the number of elements in a sequence that satisfy a condition.long
QueryableFactory. longCount(Queryable<T> source, FunctionExpression<Predicate1<T>> predicate)
Returns an long that represents the number of elements in a sequence that satisfy a condition.long
QueryableRecorder. longCount(Queryable<T> source, FunctionExpression<Predicate1<T>> predicate)
T
DefaultQueryable. single(FunctionExpression<Predicate1<T>> predicate)
T
EnumerableQueryable. single(FunctionExpression<Predicate1<T>> predicate)
TSource
ExtendedQueryable. single(FunctionExpression<Predicate1<TSource>> predicate)
Returns the only element of a sequence that satisfies a specified condition, and throws an exception if more than one such element exists.static <T> T
QueryableDefaults. single(Queryable<T> source, FunctionExpression<Predicate1<T>> predicate)
Returns the only element of a sequence that satisfies a specified condition, and throws an exception if more than one such element exists.T
QueryableFactory. single(Queryable<T> source, FunctionExpression<Predicate1<T>> predicate)
Returns the only element of a sequence that satisfies a specified condition, and throws an exception if more than one such element exists.T
QueryableRecorder. single(Queryable<T> source, FunctionExpression<Predicate1<T>> predicate)
T
DefaultQueryable. singleOrDefault(FunctionExpression<Predicate1<T>> predicate)
T
EnumerableQueryable. singleOrDefault(FunctionExpression<Predicate1<T>> predicate)
TSource
ExtendedQueryable. singleOrDefault(FunctionExpression<Predicate1<TSource>> predicate)
Returns the only element of a sequence that satisfies a specified condition or a default value if no such element exists; this method throws an exception if more than one element satisfies the condition.static <T> T
QueryableDefaults. singleOrDefault(Queryable<T> source, FunctionExpression<Predicate1<T>> predicate)
Returns the only element of a sequence that satisfies a specified condition or a default value if no such element exists; this method throws an exception if more than one element satisfies the condition.T
QueryableFactory. singleOrDefault(Queryable<T> source, FunctionExpression<Predicate1<T>> predicate)
Returns the only element of a sequence that satisfies a specified condition or a default value if no such element exists; this method throws an exception if more than one element satisfies the condition.T
QueryableRecorder. singleOrDefault(Queryable<T> source, FunctionExpression<Predicate1<T>> predicate)
Queryable<T>
DefaultQueryable. skipWhile(FunctionExpression<Predicate1<T>> predicate)
Queryable<T>
EnumerableQueryable. skipWhile(FunctionExpression<Predicate1<T>> predicate)
Queryable<TSource>
ExtendedQueryable. skipWhile(FunctionExpression<Predicate1<TSource>> predicate)
Bypasses elements in a sequence as long as a specified condition is true and then returns the remaining elements.static <T> Queryable<T>
QueryableDefaults. skipWhile(Queryable<T> source, FunctionExpression<Predicate1<T>> predicate)
Bypasses elements in a sequence as long as a specified condition is true and then returns the remaining elements.Queryable<T>
QueryableFactory. skipWhile(Queryable<T> source, FunctionExpression<Predicate1<T>> predicate)
Bypasses elements in a sequence as long as a specified condition is true and then returns the remaining elements.Queryable<T>
QueryableRecorder. skipWhile(Queryable<T> source, FunctionExpression<Predicate1<T>> predicate)
Queryable<T>
DefaultQueryable. takeWhile(FunctionExpression<Predicate1<T>> predicate)
Queryable<T>
EnumerableQueryable. takeWhile(FunctionExpression<Predicate1<T>> predicate)
Queryable<TSource>
ExtendedQueryable. takeWhile(FunctionExpression<Predicate1<TSource>> predicate)
Returns elements from a sequence as long as a specified condition is true.static <T> Queryable<T>
QueryableDefaults. takeWhile(Queryable<T> source, FunctionExpression<Predicate1<T>> predicate)
Returns elements from a sequence as long as a specified condition is true.Queryable<T>
QueryableFactory. takeWhile(Queryable<T> source, FunctionExpression<Predicate1<T>> predicate)
Returns elements from a sequence as long as a specified condition is true.Queryable<T>
QueryableRecorder. takeWhile(Queryable<T> source, FunctionExpression<Predicate1<T>> predicate)
Queryable<T>
DefaultQueryable. where(FunctionExpression<? extends Predicate1<T>> predicate)
Queryable<T>
EnumerableQueryable. where(FunctionExpression<? extends Predicate1<T>> predicate)
Queryable<TSource>
ExtendedQueryable. where(FunctionExpression<? extends Predicate1<TSource>> predicate)
Filters a sequence of values based on a predicate.static <T> Queryable<T>
QueryableDefaults. where(Queryable<T> source, FunctionExpression<Predicate1<T>> predicate)
Filters a sequence of values based on a predicate.Queryable<T>
QueryableFactory. where(Queryable<T> source, FunctionExpression<? extends Predicate1<T>> predicate)
Filters a sequence of values based on a predicate.Queryable<T>
QueryableRecorder. where(Queryable<T> source, FunctionExpression<? extends Predicate1<T>> predicate)
-
Uses of Predicate1 in org.apache.calcite.linq4j.function
Fields in org.apache.calcite.linq4j.function declared as Predicate1 Modifier and Type Field Description static Predicate1<java.lang.Object>
Predicate1. FALSE
Predicate that always evaluates tofalse
.static Predicate1<java.lang.Object>
Predicate1. TRUE
Predicate that always evaluates totrue
.Methods in org.apache.calcite.linq4j.function that return Predicate1 Modifier and Type Method Description static <T> Predicate1<T>
Functions. falsePredicate1()
A predicate with one parameter that always returnstrue
.static <T,T2>
Predicate1<T>Functions. ofTypePredicate(java.lang.Class<T2> clazz)
Creates a predicate that returns whether an object is an instance of a particular type or is null.private static <T> Predicate1<T>
Functions. toPredicate(Function1<T,java.lang.Boolean> function)
Converts a 1-parameter function to a predicate.static <T> Predicate1<T>
Functions. truePredicate1()
A predicate with one parameter that always returnstrue
.Methods in org.apache.calcite.linq4j.function with parameters of type Predicate1 Modifier and Type Method Description static <E> boolean
Functions. all(java.util.List<? extends E> list, Predicate1<E> predicate)
Returns whetherpredicate
is true for all elements oflist
.static <E> boolean
Functions. exists(java.util.List<? extends E> list, Predicate1<E> predicate)
Returns whether there is an element inlist
for whichpredicate
is true.static <E> java.util.List<E>
Functions. filter(java.util.List<E> list, Predicate1<E> predicate)
Returns a list that contains only elements oflist
that matchpredicate
.static <T1,T2>
Predicate2<T1,T2>Functions. toPredicate2(Predicate1<T1> p1)
-
Uses of Predicate1 in org.apache.calcite.prepare
Method parameters in org.apache.calcite.prepare with type arguments of type Predicate1 Modifier and Type Method Description boolean
QueryableRelBuilder. all(Queryable<T> source, FunctionExpression<Predicate1<T>> predicate)
boolean
QueryableRelBuilder. any(Queryable<T> source, FunctionExpression<Predicate1<T>> predicate)
int
QueryableRelBuilder. count(Queryable<T> source, FunctionExpression<Predicate1<T>> predicate)
T
QueryableRelBuilder. first(Queryable<T> source, FunctionExpression<Predicate1<T>> predicate)
T
QueryableRelBuilder. firstOrDefault(Queryable<T> source, FunctionExpression<Predicate1<T>> predicate)
T
QueryableRelBuilder. last(Queryable<T> source, FunctionExpression<Predicate1<T>> predicate)
T
QueryableRelBuilder. lastOrDefault(Queryable<T> source, FunctionExpression<Predicate1<T>> predicate)
long
QueryableRelBuilder. longCount(Queryable<T> source, FunctionExpression<Predicate1<T>> predicate)
T
QueryableRelBuilder. single(Queryable<T> source, FunctionExpression<Predicate1<T>> predicate)
T
QueryableRelBuilder. singleOrDefault(Queryable<T> source, FunctionExpression<Predicate1<T>> predicate)
Queryable<T>
QueryableRelBuilder. skipWhile(Queryable<T> source, FunctionExpression<Predicate1<T>> predicate)
Queryable<T>
QueryableRelBuilder. takeWhile(Queryable<T> source, FunctionExpression<Predicate1<T>> predicate)
Queryable<T>
QueryableRelBuilder. where(Queryable<T> source, FunctionExpression<? extends Predicate1<T>> predicate)
-
Uses of Predicate1 in org.apache.calcite.rex
Methods in org.apache.calcite.rex with parameters of type Predicate1 Modifier and Type Method Description static <E> boolean
RexUtil. all(java.util.List<? extends E> list, Predicate1<E> predicate)
Returns whetherpredicate
is true for all elements oflist
.static <E> boolean
RexUtil. exists(java.util.List<? extends E> list, Predicate1<E> predicate)
Returns whether there is an element inlist
for whichpredicate
is true.
-