Class Sequences
java.lang.Object
org.apache.druid.java.util.common.guava.Sequences
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <T> Sequence<T>static <T> Sequence<T>static <T> Sequence<T>static <T> Sequence<T>empty()static <T> Sequence<T>static <From,To> Sequence<To> static <T> Sequence<T>of(T... values) static <T> Sequence<T>static <T> Sequence<T>sort(Sequence<T> sequence, Comparator<T> comparator) Returns a sorted copy of the provided sequence.static <T> Sequence<T>withBaggage(Sequence<T> seq, Closeable baggage) static <T> Sequence<T>withEffect(Sequence<T> seq, Runnable effect, Executor exec) static <T> Sequence<T>wrap(Sequence<T> seq, SequenceWrapper wrapper) Allows to execute something before, after or around the processing of the given sequence.
-
Constructor Details
-
Sequences
public Sequences()
-
-
Method Details
-
simple
-
empty
-
concat
-
concat
-
concat
-
map
-
filter
-
withBaggage
-
wrap
Allows to execute something before, after or around the processing of the given sequence. See documentation toSequenceWrappermethods for some details. -
withEffect
-
sort
Returns a sorted copy of the provided sequence. This will materialize the entire sequence in memory. Use at your own risk. The sort is stable, meaning that equal elements (as determined by the comparator) will not be reordered. -
of
-