public class DefaultBroadcastVariableInitializer<T> extends Object implements BroadcastVariableInitializer<T,List<T>>
BroadcastVariableInitializer
implementation that initializes the broadcast variable into a list.Modifier and Type | Method and Description |
---|---|
List<T> |
initializeBroadcastVariable(Iterable<T> data)
The method that reads the data elements from the broadcast variable and
creates the transformed data structure.
|
static <E> DefaultBroadcastVariableInitializer<E> |
instance() |
public List<T> initializeBroadcastVariable(Iterable<T> data)
BroadcastVariableInitializer
The iterable with the data elements can be traversed only once, i.e.,
only the first call to iterator()
will succeed.
initializeBroadcastVariable
in interface BroadcastVariableInitializer<T,List<T>>
data
- The sequence of elements in the broadcast variable.public static <E> DefaultBroadcastVariableInitializer<E> instance()
Copyright © 2014–2020 The Apache Software Foundation. All rights reserved.