public class PrefetchableIterables
extends java.lang.Object
PrefetchableIterable
.Constructor and Description |
---|
PrefetchableIterables() |
Modifier and Type | Method and Description |
---|---|
static <T> PrefetchableIterable<T> |
concat(java.lang.Iterable<T>... iterables)
Concatentates the
Iterable s. |
static <T> PrefetchableIterable<T> |
emptyIterable()
Returns an empty
PrefetchableIterable . |
static <T> PrefetchableIterable<T> |
fromArray(T... values)
Returns a
PrefetchableIterable over the specified values. |
static <T> PrefetchableIterable<T> |
limit(java.lang.Iterable<T> iterable,
int limit)
Limits the
PrefetchableIterable to the specified number of elements. |
public static <T> PrefetchableIterable<T> emptyIterable()
PrefetchableIterable
.public static <T> PrefetchableIterable<T> fromArray(T... values)
PrefetchableIterable
over the specified values.
PrefetchableIterator.prefetch()
is a no-op and PrefetchableIterator.isReady()
always returns true.
public static <T> PrefetchableIterable<T> concat(java.lang.Iterable<T>... iterables)
Iterable
s.
See PrefetchableIterators.concat(java.util.Iterator<T>...)
for additional details.
public static <T> PrefetchableIterable<T> limit(java.lang.Iterable<T> iterable, int limit)
PrefetchableIterable
to the specified number of elements.