Package org.apache.beam.sdk.fn.stream
Class PrefetchableIterables
java.lang.Object
org.apache.beam.sdk.fn.stream.PrefetchableIterables
This class contains static utility functions that operate on or return objects of type
PrefetchableIterable
.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
A default implementation that caches an iterator to be returned whenPrefetchableIterables.Default.prefetch()
is invoked. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <T> PrefetchableIterable
<T> Concatentates theIterable
s.static <T> PrefetchableIterable
<T> Returns an emptyPrefetchableIterable
.static <T> PrefetchableIterable
<T> fromArray
(T... values) Returns aPrefetchableIterable
over the specified values.static <T> PrefetchableIterable
<T> Limits thePrefetchableIterable
to the specified number of elements.
-
Constructor Details
-
PrefetchableIterables
public PrefetchableIterables()
-
-
Method Details
-
emptyIterable
Returns an emptyPrefetchableIterable
. -
fromArray
Returns aPrefetchableIterable
over the specified values.PrefetchableIterator.prefetch()
is a no-op andPrefetchableIterator.isReady()
always returns true. -
concat
Concatentates theIterable
s.See
PrefetchableIterators.concat(java.util.Iterator<T>...)
for additional details. -
limit
Limits thePrefetchableIterable
to the specified number of elements.
-