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 classA 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 theIterables.static <T> PrefetchableIterable<T> Returns an emptyPrefetchableIterable.static <T> PrefetchableIterable<T> fromArray(T... values) Returns aPrefetchableIterableover the specified values.static <T> PrefetchableIterable<T> Limits thePrefetchableIterableto the specified number of elements.
-
Constructor Details
-
PrefetchableIterables
public PrefetchableIterables()
-
-
Method Details
-
emptyIterable
Returns an emptyPrefetchableIterable. -
fromArray
Returns aPrefetchableIterableover the specified values.PrefetchableIterator.prefetch()is a no-op andPrefetchableIterator.isReady()always returns true. -
concat
Concatentates theIterables.See
PrefetchableIterators.concat(java.util.Iterator<T>...)for additional details. -
limit
Limits thePrefetchableIterableto the specified number of elements.
-