public final class CQL extends Object
API for fluent query syntax and query instance definition.
| Modifier and Type | Method and Description |
|---|---|
static <I,R> CqlAggregation<I,R> |
aggregate(CqlResultor<I,R> aggregator) |
static <I,R> CqlAggregation<I,R> |
aggregate(Supplier<R> supplier,
BiConsumer<I,R> linker) |
static <I,R extends Sortable<I>> |
aggregate(Supplier<R> supplier,
BiConsumer<I,R> linker,
Comparator<? super I> order) |
static <I,R> CqlAggregation<I,R> |
aggregate(Supplier<R> supplier,
BiConsumer<I,R> linker,
Consumer<? super R> finalizer) |
static <I,R> CqlAggregation<I,R> |
Aggregation() |
static <E> Comparator<? super E> |
chain(Comparator<? super E>... comparators) |
static <T> Comparator<T> |
comparing(Comparator<T> order)
Helper method to make a lambda or method reference expression chainable.
|
static <E,T> Comparator<E> |
comparing(Function<E,T> getter,
Comparator<T> order) |
static <E> XSequence<E> |
executeQuery(XIterable<? extends E> source) |
static <E,T extends Consumer<? super E>> |
executeQuery(XIterable<? extends E> source,
T target) |
static <I,R> R |
executeQuery(XIterable<? extends I> source,
Long skip,
Long limit,
Predicate<? super I> selector,
CqlResultor<I,R> resultor,
Comparator<? super I> order) |
static <I,O,R> R |
executeQuery(XIterable<? extends I> source,
Long skip,
Long limit,
Predicate<? super I> selector,
Function<? super I,O> projector,
CqlResultor<O,R> resultor,
Comparator<? super O> order) |
static <I,O,P extends Consumer<O>> |
executeQuery(XIterable<? extends I> source,
Long skip,
Long limit,
Predicate<? super I> selector,
Function<? super I,O> projector,
P target,
Comparator<? super O> order) |
static <I,P extends Consumer<? super I>> |
executeQuery(XIterable<? extends I> source,
Long skip,
Long limit,
Predicate<? super I> selector,
P target) |
static <I,P extends Consumer<I>> |
executeQuery(XIterable<? extends I> source,
Long skip,
Long limit,
Predicate<? super I> selector,
P target,
Comparator<? super I> order) |
static <I> CqlSelection<I> |
from(XIterable<? extends I> source) |
static <I> Function<I,I> |
identity() |
static <T> boolean |
isNotNull(T instance) |
static <T> boolean |
isNull(T instance) |
static <I,O,R extends XIterable<O>> |
Iteration() |
static <O> CqlResultor<O,Double> |
min(To_double<? super O> getter) |
static <T> Predicate<T> |
not(Predicate<T> predicate)
Fluent alias for
predicate.negate(). |
static <I> XIterable<? extends I> |
prepareSource(XIterable<? extends I> source) |
static <I> Consumer<I> |
prepareSourceIterator(Long skip,
Long limit,
Consumer<? super I> target) |
static <I,O> Consumer<I> |
prepareSourceIterator(Long skip,
Long limit,
Function<? super I,O> projector,
Consumer<? super O> target) |
static <I> Consumer<I> |
prepareSourceIterator(Long skip,
Long limit,
Predicate<? super I> selector,
Consumer<? super I> target) |
static <I,O> Consumer<I> |
prepareSourceIterator(Long skip,
Long limit,
Predicate<? super I> selector,
Function<? super I,O> projector,
Consumer<? super O> target) |
static <E> XSequence<E> |
prepareTargetCollection(XIterable<?> source) |
static <I,O> CqlProjection<I,O> |
project(Function<? super I,O> projector) |
static <I> CqlProjection<I,Object[]> |
project(Function<? super I,Object>... projectors) |
static <I,O> CqlProjection<I,O> |
Projection() |
static <I,O,R> CqlQuery<I,O,R> |
Query() |
static <O,T extends Consumer<O>> |
resulting(Supplier<T> supplier) |
static <O> CqlResultor<O,BulkList<O>> |
resultingBulkList() |
static <O> CqlResultor<O,BulkList<O>> |
resultingBulkList(int initialCapacity) |
static <O> CqlResultor<O,EqHashEnum<O>> |
resultingEqHashEnum() |
static <O> CqlResultor<O,EqHashEnum<O>> |
resultingEqHashEnum(HashEqualator<? super O> hashEqualator) |
static <K,V> CqlResultor<KeyValue<K,V>,EqHashTable<K,V>> |
resultingEqHashTable() |
static <K,V> CqlResultor<KeyValue<K,V>,EqHashTable<K,V>> |
resultingEqHashTable(HashEqualator<? super K> hashEqualator) |
static <O> CqlResultor<O,HashEnum<O>> |
resultingHashEnum() |
static <K,V> CqlResultor<KeyValue<K,V>,HashTable<K,V>> |
resultingHashTable() |
static <O,T extends Consumer<O> & XIterable<O>> |
resultingIterable(Supplier<T> supplier) |
static <O> CqlResultor<O,LimitList<O>> |
resultingLimitList(int initialCapacity) |
static <T> Comparator<T> |
reversed(Comparator<T> order)
Fluent alias for
Comparator#reversed() |
static <I> CqlSelection<I> |
select(Predicate<? super I> predicate) |
static <I> CqlSelection<I> |
Selection() |
static <O> CqlResultor<O,Double> |
sum(To_double<? super O> getter) |
static <I> CqlTransfer<I,XSequence<I>> |
Transfer() |
static <T> Predicate<T> |
where(Predicate<T> predicate)
Helper method to make a lambda or method reference expression chainable.
|
public static <I> CqlSelection<I> Selection()
public static <I> CqlTransfer<I,XSequence<I>> Transfer()
public static <I,R> CqlAggregation<I,R> Aggregation()
public static <I,O> CqlProjection<I,O> Projection()
public static <I,O,R extends XIterable<O>> CqlIteration<I,O,R> Iteration()
public static <I,O,R> CqlQuery<I,O,R> Query()
public static <T> boolean isNotNull(T instance)
public static <T> boolean isNull(T instance)
public static <I> CqlSelection<I> select(Predicate<? super I> predicate)
public static <I,R> CqlAggregation<I,R> aggregate(CqlResultor<I,R> aggregator)
public static <I,R> CqlAggregation<I,R> aggregate(Supplier<R> supplier, BiConsumer<I,R> linker)
public static <I,R extends Sortable<I>> CqlAggregation<I,R> aggregate(Supplier<R> supplier, BiConsumer<I,R> linker, Comparator<? super I> order)
public static <I,R> CqlAggregation<I,R> aggregate(Supplier<R> supplier, BiConsumer<I,R> linker, Consumer<? super R> finalizer)
public static <I> CqlSelection<I> from(XIterable<? extends I> source)
public static <I,O> CqlProjection<I,O> project(Function<? super I,O> projector)
@SafeVarargs public static <I> CqlProjection<I,Object[]> project(Function<? super I,Object>... projectors)
public static <T> Predicate<T> not(Predicate<T> predicate)
predicate.negate().T - the type of the input to the predicatepredicate - the predicate to negatepublic static <T> Predicate<T> where(Predicate<T> predicate)
T - the type of the input to the predicatepredicate - the condiationpublic static <T> Comparator<T> reversed(Comparator<T> order)
Comparator#reversed()T - the type of objects that may be compared by this comparatororder - the comparator the be reversedpublic static <T> Comparator<T> comparing(Comparator<T> order)
T - the type of objects that may be compared by this comparatororder - the comparatorpublic static <E,T> Comparator<E> comparing(Function<E,T> getter, Comparator<T> order)
public static <I> Function<I,I> identity()
public static <I> Consumer<I> prepareSourceIterator(Long skip, Long limit, Predicate<? super I> selector, Consumer<? super I> target)
public static <I> Consumer<I> prepareSourceIterator(Long skip, Long limit, Consumer<? super I> target)
public static <I,O> Consumer<I> prepareSourceIterator(Long skip, Long limit, Predicate<? super I> selector, Function<? super I,O> projector, Consumer<? super O> target)
public static <I,O> Consumer<I> prepareSourceIterator(Long skip, Long limit, Function<? super I,O> projector, Consumer<? super O> target)
public static <E,T extends Consumer<? super E>> T executeQuery(XIterable<? extends E> source, T target)
public static <I,P extends Consumer<? super I>> P executeQuery(XIterable<? extends I> source, Long skip, Long limit, Predicate<? super I> selector, P target)
public static <I,P extends Consumer<I>> P executeQuery(XIterable<? extends I> source, Long skip, Long limit, Predicate<? super I> selector, P target, Comparator<? super I> order)
public static <I,R> R executeQuery(XIterable<? extends I> source, Long skip, Long limit, Predicate<? super I> selector, CqlResultor<I,R> resultor, Comparator<? super I> order)
public static <I,O,R> R executeQuery(XIterable<? extends I> source, Long skip, Long limit, Predicate<? super I> selector, Function<? super I,O> projector, CqlResultor<O,R> resultor, Comparator<? super O> order)
public static <I,O,P extends Consumer<O>> P executeQuery(XIterable<? extends I> source, Long skip, Long limit, Predicate<? super I> selector, Function<? super I,O> projector, P target, Comparator<? super O> order)
public static <O,T extends Consumer<O>> CqlResultor<O,T> resulting(Supplier<T> supplier)
public static <O,T extends Consumer<O> & XIterable<O>> CqlResultor<O,T> resultingIterable(Supplier<T> supplier)
public static <O> CqlResultor<O,BulkList<O>> resultingBulkList()
public static <O> CqlResultor<O,BulkList<O>> resultingBulkList(int initialCapacity)
public static <O> CqlResultor<O,LimitList<O>> resultingLimitList(int initialCapacity)
public static <O> CqlResultor<O,HashEnum<O>> resultingHashEnum()
public static <O> CqlResultor<O,EqHashEnum<O>> resultingEqHashEnum()
public static <O> CqlResultor<O,EqHashEnum<O>> resultingEqHashEnum(HashEqualator<? super O> hashEqualator)
public static <K,V> CqlResultor<KeyValue<K,V>,HashTable<K,V>> resultingHashTable()
public static <K,V> CqlResultor<KeyValue<K,V>,EqHashTable<K,V>> resultingEqHashTable()
public static <K,V> CqlResultor<KeyValue<K,V>,EqHashTable<K,V>> resultingEqHashTable(HashEqualator<? super K> hashEqualator)
public static <O> CqlResultor<O,Double> sum(To_double<? super O> getter)
public static <O> CqlResultor<O,Double> min(To_double<? super O> getter)
@SafeVarargs public static final <E> Comparator<? super E> chain(Comparator<? super E>... comparators)
Copyright © 2022 MicroStream Software. All rights reserved.