Uses of Interface
com.tangosol.util.function.Remote.Comparator
-
Packages that use Remote.Comparator Package Description com.oracle.coherence.repository Contains classes to enable Repository-like access to Coherence data.com.tangosol.util.comparator Contains concreteComparator
implementations and related interfaces.com.tangosol.util.function Contains Functional interfaces allowing remote execution of lambda expressions and method references.com.tangosol.util.stream Contains classes to support functional-style operations on remote streams of elements, such as map-reduce transformations on collections. -
-
Uses of Remote.Comparator in com.oracle.coherence.repository
Methods in com.oracle.coherence.repository with parameters of type Remote.Comparator Modifier and Type Method Description CompletableFuture<Collection<T>>
AbstractAsyncRepository. getAllOrderedBy(Filter<?> filter, Remote.Comparator<? super T> orderBy)
Return all entities that satisfy the specified criteria, sorted using specifiedRemote.Comparator
.CompletableFuture<Collection<T>>
AbstractAsyncRepository. getAllOrderedBy(Remote.Comparator<? super T> orderBy)
Return all entities in this repository, sorted using specifiedRemote.Comparator
.Collection<T>
AbstractRepository. getAllOrderedBy(Filter<?> filter, Remote.Comparator<? super T> orderBy)
Return all entities that satisfy the specified criteria, sorted using specifiedRemote.Comparator
.Collection<T>
AbstractRepository. getAllOrderedBy(Remote.Comparator<? super T> orderBy)
Return all entities in this repository, sorted using specifiedRemote.Comparator
.<K> CompletableFuture<Map<K,SortedSet<T>>>
AbstractAsyncRepository. groupBy(Filter<?> filter, ValueExtractor<? super T,? extends K> extractor, Remote.Comparator<? super T> orderBy)
Return the grouping of entities by the specified extractor, ordered by the specified attribute within each group.<K> CompletableFuture<Map<K,SortedSet<T>>>
AbstractAsyncRepository. groupBy(ValueExtractor<? super T,? extends K> extractor, Remote.Comparator<? super T> orderBy)
Return the grouping of entities by the specified extractor, ordered by the specified attribute within each group.<K> Map<K,SortedSet<T>>
AbstractRepository. groupBy(Filter<?> filter, ValueExtractor<? super T,? extends K> extractor, Remote.Comparator<? super T> orderBy)
Return the grouping of entities by the specified extractor, ordered by the specified attribute within each group.<K> Map<K,SortedSet<T>>
AbstractRepository. groupBy(ValueExtractor<? super T,? extends K> extractor, Remote.Comparator<? super T> orderBy)
Return the grouping of entities by the specified extractor, ordered by the specified attribute within each group.<R> CompletableFuture<List<R>>
AbstractAsyncRepository. top(Filter<?> filter, ValueExtractor<? super T,? extends R> extractor, Remote.Comparator<? super R> comparator, int cResults)
Return the top N highest values for the specified extractor.<R> CompletableFuture<List<R>>
AbstractAsyncRepository. top(ValueExtractor<? super T,? extends R> extractor, Remote.Comparator<? super R> comparator, int cResults)
Return the top N highest values for the specified extractor.<R> List<R>
AbstractRepository. top(Filter<?> filter, ValueExtractor<? super T,? extends R> extractor, Remote.Comparator<? super R> comparator, int cResults)
Return the top N highest values for the specified extractor.<R> List<R>
AbstractRepository. top(ValueExtractor<? super T,? extends R> extractor, Remote.Comparator<? super R> comparator, int cResults)
Return the top N highest values for the specified extractor.CompletableFuture<List<T>>
AbstractAsyncRepository. topBy(Filter<?> filter, Remote.Comparator<? super T> comparator, int cResults)
Return the top N entities with the highest values for the specified extractor.CompletableFuture<List<T>>
AbstractAsyncRepository. topBy(Remote.Comparator<? super T> comparator, int cResults)
Return the top N entities with the highest values for the specified extractor.List<T>
AbstractRepository. topBy(Filter<?> filter, Remote.Comparator<? super T> comparator, int cResults)
Return the top N entities with the highest values for the specified extractor.List<T>
AbstractRepository. topBy(Remote.Comparator<? super T> comparator, int cResults)
Return the top N entities with the highest values for the specified extractor. -
Uses of Remote.Comparator in com.tangosol.util.comparator
Classes in com.tangosol.util.comparator that implement Remote.Comparator Modifier and Type Class Description class
EntryComparator
Comparator implementation used to compare map entries.class
InverseComparator<T>
Comparator that reverses the result of another comparator.class
SafeComparator<T>
Null-safe delegating comparator. -
Uses of Remote.Comparator in com.tangosol.util.function
Methods in com.tangosol.util.function that return Remote.Comparator Modifier and Type Method Description static <T> Remote.Comparator<T>
Remote. comparator(Remote.Comparator<T> comparator)
Capture serializable Comparator.static <T,E extends Comparable<? super E>>
Remote.Comparator<T>Remote. comparator(ValueExtractor<? super T,? extends E> extractor)
CreateRemote.Comparator
for the specified extractor that returns aComparable
value.static <T,U extends Comparable<? super U>>
Remote.Comparator<T>Remote.Comparator. comparing(Remote.Function<? super T,? extends U> keyExtractor)
Accepts a function that extracts aComparable
sort key from a typeT
, and returns aComparator<T>
that compares by that sort key.static <T,U>
Remote.Comparator<T>Remote.Comparator. comparing(Remote.Function<? super T,? extends U> keyExtractor, Remote.Comparator<? super U> keyComparator)
Accepts a function that extracts a sort key from a typeT
, and returns aComparator<T>
that compares by that sort key using the specifiedRemote.Comparator
.static <T> Remote.Comparator<T>
Remote.Comparator. comparingDouble(Remote.ToDoubleFunction<? super T> keyExtractor)
Accepts a function that extracts adouble
sort key from a typeT
, and returns aComparator<T>
that compares by that sort key.static <T> Remote.Comparator<T>
Remote.Comparator. comparingInt(Remote.ToIntFunction<? super T> keyExtractor)
Accepts a function that extracts anint
sort key from a typeT
, and returns aComparator<T>
that compares by that sort key.static <T> Remote.Comparator<T>
Remote.Comparator. comparingLong(Remote.ToLongFunction<? super T> keyExtractor)
Accepts a function that extracts along
sort key from a typeT
, and returns aComparator<T>
that compares by that sort key.static <T extends Comparable<? super T>>
Remote.Comparator<T>Remote.Comparator. naturalOrder()
Returns a comparator that comparesComparable
objects in natural order.static <T> Remote.Comparator<T>
Remote.Comparator. nullsFirst(Remote.Comparator<T> comparator)
Returns a null-friendly comparator that considersnull
to be less than non-null.static <T> Remote.Comparator<T>
Remote.Comparator. nullsLast(Remote.Comparator<T> comparator)
Returns a null-friendly comparator that considersnull
to be greater than non-null.default Remote.Comparator<T>
Remote.Comparator. reversed()
Returns a comparator that imposes the reverse ordering of this comparator.static <T extends Comparable<? super T>>
Remote.Comparator<T>Remote.Comparator. reverseOrder()
Returns a comparator that imposes the reverse of the natural ordering.default Remote.Comparator<T>
Remote.Comparator. thenComparing(Remote.Comparator<? super T> other)
Returns a lexicographic-order comparator with another comparator.default <U extends Comparable<? super U>>
Remote.Comparator<T>Remote.Comparator. thenComparing(Remote.Function<? super T,? extends U> keyExtractor)
Returns a lexicographic-order comparator with a function that extracts aComparable
sort key.default <U> Remote.Comparator<T>
Remote.Comparator. thenComparing(Remote.Function<? super T,? extends U> keyExtractor, Remote.Comparator<? super U> keyComparator)
Returns a lexicographic-order comparator with a function that extracts a key to be compared with the givenComparator
.default Remote.Comparator<T>
Remote.Comparator. thenComparingDouble(Remote.ToDoubleFunction<? super T> keyExtractor)
Returns a lexicographic-order comparator with a function that extracts adouble
sort key.default Remote.Comparator<T>
Remote.Comparator. thenComparingInt(Remote.ToIntFunction<? super T> keyExtractor)
Returns a lexicographic-order comparator with a function that extracts aint
sort key.default Remote.Comparator<T>
Remote.Comparator. thenComparingLong(Remote.ToLongFunction<? super T> keyExtractor)
Returns a lexicographic-order comparator with a function that extracts along
sort key.Methods in com.tangosol.util.function with parameters of type Remote.Comparator Modifier and Type Method Description static <T> Remote.Comparator<T>
Remote. comparator(Remote.Comparator<T> comparator)
Capture serializable Comparator.static <T,U>
Remote.Comparator<T>Remote.Comparator. comparing(Remote.Function<? super T,? extends U> keyExtractor, Remote.Comparator<? super U> keyComparator)
Accepts a function that extracts a sort key from a typeT
, and returns aComparator<T>
that compares by that sort key using the specifiedRemote.Comparator
.static <T> Remote.BinaryOperator<T>
Remote.BinaryOperator. maxBy(Remote.Comparator<? super T> comparator)
Returns aRemote.BinaryOperator
which returns the greater of two elements according to the specifiedComparator
.static <T> Remote.BinaryOperator<T>
Remote.BinaryOperator. minBy(Remote.Comparator<? super T> comparator)
Returns aRemote.BinaryOperator
which returns the lesser of two elements according to the specifiedComparator
.static <T> Remote.Comparator<T>
Remote.Comparator. nullsFirst(Remote.Comparator<T> comparator)
Returns a null-friendly comparator that considersnull
to be less than non-null.static <T> Remote.Comparator<T>
Remote.Comparator. nullsLast(Remote.Comparator<T> comparator)
Returns a null-friendly comparator that considersnull
to be greater than non-null.default Remote.Comparator<T>
Remote.Comparator. thenComparing(Remote.Comparator<? super T> other)
Returns a lexicographic-order comparator with another comparator.default <U> Remote.Comparator<T>
Remote.Comparator. thenComparing(Remote.Function<? super T,? extends U> keyExtractor, Remote.Comparator<? super U> keyComparator)
Returns a lexicographic-order comparator with a function that extracts a key to be compared with the givenComparator
. -
Uses of Remote.Comparator in com.tangosol.util.stream
Methods in com.tangosol.util.stream with parameters of type Remote.Comparator Modifier and Type Method Description default Optional<T>
RemoteStream. max(Remote.Comparator<? super T> comparator)
Returns the maximum element of this stream according to the providedComparator
.static <T> RemoteCollector<T,?,Optional<T>>
RemoteCollectors. maxBy(Remote.Comparator<? super T> comparator)
Returns aCollector
that produces the maximal element according to a givenComparator
, described as anOptional<T>
.default Optional<T>
RemoteStream. min(Remote.Comparator<? super T> comparator)
Returns the minimum element of this stream according to the providedComparator
.static <T> RemoteCollector<T,?,Optional<T>>
RemoteCollectors. minBy(Remote.Comparator<? super T> comparator)
Returns aCollector
that produces the minimal element according to a givenComparator
, described as anOptional<T>
.default RemoteStream<T>
RemoteStream. sorted(Remote.Comparator<? super T> comparator)
Returns a stream consisting of the elements of this stream, sorted according to the providedComparator
.default RemoteStream<T>
RemoteStream. sorted(Remote.Comparator<? super T> comparator, boolean fInverse)
Returns a stream consisting of the elements of this stream, sorted according to the providedComparator
.static <T> RemoteCollector<T,?,Collection<T>>
RemoteCollectors. toSortedBag(Remote.Comparator<? super T> comparator)
Returns aCollector
that accumulates the input elements into a newSortedBag
.static <T> RemoteCollector<T,?,SortedSet<T>>
RemoteCollectors. toSortedSet(Remote.Comparator<? super T> comparator)
Returns aCollector
that accumulates the input elements into a newSortedSet
.
-