public class PrefetchableIterables
extends java.lang.Object
PrefetchableIterable
.Modifier and Type | Class and Description |
---|---|
static class |
PrefetchableIterables.Default<T>
A default implementation that caches an iterator to be returned when
PrefetchableIterables.Default.prefetch() is
invoked. |
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.