| Modifier and Type | Method and Description |
|---|---|
static <T> Stream<T> |
stream(Iterable<T>... iterables)
Create a
Stream over the elements of the iterables, in order. |
static <T> Stream<T> |
stream(Iterator<T>... iterators)
Create a
Stream over the elements of the iterators, in order. |
static Stream<Element> |
stream(Query... queries)
Create a
Stream containing the results of executing the queries, in order. |
static <T> Stream<T> |
streamForIterator(Iterator<T> iterator) |
static <T> Collector<T,com.google.common.collect.ImmutableList.Builder<T>,com.google.common.collect.ImmutableList<T>> |
toImmutableList() |
static <T,K,V> Collector<T,com.google.common.collect.ImmutableMap.Builder<K,V>,com.google.common.collect.ImmutableMap<K,V>> |
toImmutableMap(Function<? super T,? extends K> keyMapper,
Function<? super T,? extends V> valueMapper) |
static <T> Collector<T,com.google.common.collect.ImmutableSet.Builder<T>,com.google.common.collect.ImmutableSet<T>> |
toImmutableSet() |
static <T,A,R> Collector<T,?,R> |
unorderedBatches(int batchSize,
Collector<List<T>,A,R> downstream) |
public static Stream<Element> stream(Query... queries)
Stream containing the results of executing the queries, in order. The results
are not loaded into memory first.@SafeVarargs public static <T> Stream<T> stream(Iterable<T>... iterables)
Stream over the elements of the iterables, in order. A list of iterators
is first created from the iterables, and passed to stream(Iterator[]). The iterable elements are not
loaded into memory first.@SafeVarargs public static <T> Stream<T> stream(Iterator<T>... iterators)
Stream over the elements of the iterators, in order. The iterator elements
are not loaded into memory first.public static <T> Collector<T,com.google.common.collect.ImmutableList.Builder<T>,com.google.common.collect.ImmutableList<T>> toImmutableList()
public static <T> Collector<T,com.google.common.collect.ImmutableSet.Builder<T>,com.google.common.collect.ImmutableSet<T>> toImmutableSet()
public static <T,K,V> Collector<T,com.google.common.collect.ImmutableMap.Builder<K,V>,com.google.common.collect.ImmutableMap<K,V>> toImmutableMap(Function<? super T,? extends K> keyMapper, Function<? super T,? extends V> valueMapper)
Copyright © 2016–2021 MWARE SOLUTIONS. All rights reserved.