public class BroadcastVariableManager extends Object
Constructor and Description |
---|
BroadcastVariableManager() |
Modifier and Type | Method and Description |
---|---|
int |
getNumberOfVariablesWithReferences() |
<T> BroadcastVariableMaterialization<T,?> |
materializeBroadcastVariable(String name,
int superstep,
BatchTask<?,?> holder,
MutableReader<?> reader,
TypeSerializerFactory<T> serializerFactory)
Materializes the broadcast variable for the given name, scoped to the given task and its
iteration superstep.
|
void |
releaseAllReferencesFromTask(BatchTask<?,?> referenceHolder) |
void |
releaseReference(BroadcastVariableKey key,
BatchTask<?,?> referenceHolder) |
void |
releaseReference(String name,
int superstep,
BatchTask<?,?> referenceHolder) |
public <T> BroadcastVariableMaterialization<T,?> materializeBroadcastVariable(String name, int superstep, BatchTask<?,?> holder, MutableReader<?> reader, TypeSerializerFactory<T> serializerFactory) throws IOException
IOException
public void releaseReference(String name, int superstep, BatchTask<?,?> referenceHolder)
public void releaseReference(BroadcastVariableKey key, BatchTask<?,?> referenceHolder)
public void releaseAllReferencesFromTask(BatchTask<?,?> referenceHolder)
public int getNumberOfVariablesWithReferences()
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.