@Internal public class StreamConfig extends Object implements Serializable
StreamOperator
. This is created and populated by the StreamingJobGraphGenerator
.Modifier and Type | Class and Description |
---|---|
static interface |
StreamConfig.InputConfig
Interface representing chained inputs.
|
static class |
StreamConfig.InputRequirement
Requirements of the different inputs of an operator.
|
static class |
StreamConfig.NetworkInputConfig
A representation of a Network
StreamConfig.InputConfig . |
static class |
StreamConfig.SourceInputConfig
A serialized representation of an input.
|
Modifier and Type | Field and Description |
---|---|
static String |
SERIALIZED_UDF |
static String |
SERIALIZED_UDF_CLASS_NAME
Introduce serializedUdfClassName to avoid unnecessarily heavy
getStreamOperatorFactory(java.lang.ClassLoader) . |
Constructor and Description |
---|
StreamConfig(Configuration config) |
public static final String SERIALIZED_UDF
public static final String SERIALIZED_UDF_CLASS_NAME
getStreamOperatorFactory(java.lang.ClassLoader)
.public StreamConfig(Configuration config)
public Configuration getConfiguration()
public CompletableFuture<StreamConfig> getSerializationFuture()
public CompletableFuture<StreamConfig> triggerSerializationAndReturnFuture(Executor ioExecutor)
public void serializeAllConfigs()
@VisibleForTesting public void setAndSerializeTransitiveChainedTaskConfigs(Map<Integer,StreamConfig> chainedTaskConfigs)
public void setVertexID(Integer vertexID)
public Integer getVertexID()
public void setManagedMemoryFractionOperatorOfUseCase(ManagedMemoryUseCase managedMemoryUseCase, double fraction)
public double getManagedMemoryFractionOperatorUseCaseOfSlot(ManagedMemoryUseCase managedMemoryUseCase, Configuration taskManagerConfig, ClassLoader cl)
public void setTimeCharacteristic(TimeCharacteristic characteristic)
public TimeCharacteristic getTimeCharacteristic()
public void setTypeSerializerOut(TypeSerializer<?> serializer)
public <T> TypeSerializer<T> getTypeSerializerOut(ClassLoader cl)
public void setTypeSerializerSideOut(OutputTag<?> outputTag, TypeSerializer<?> serializer)
public <T> TypeSerializer<T> getTypeSerializerSideOut(OutputTag<?> outputTag, ClassLoader cl)
public void setupNetworkInputs(TypeSerializer<?>... serializers)
public void setInputs(StreamConfig.InputConfig... inputs)
public StreamConfig.InputConfig[] getInputs(ClassLoader cl)
@Deprecated public <T> TypeSerializer<T> getTypeSerializerIn1(ClassLoader cl)
@Deprecated public <T> TypeSerializer<T> getTypeSerializerIn2(ClassLoader cl)
public <T> TypeSerializer<T> getTypeSerializerIn(int index, ClassLoader cl)
@VisibleForTesting public void setStreamOperator(StreamOperator<?> operator)
public void setStreamOperatorFactory(StreamOperatorFactory<?> factory)
@VisibleForTesting public <T extends StreamOperator<?>> T getStreamOperator(ClassLoader cl)
public <T extends StreamOperatorFactory<?>> T getStreamOperatorFactory(ClassLoader cl)
public String getStreamOperatorFactoryClassName()
public void setIterationId(String iterationId)
public String getIterationId()
public void setIterationWaitTime(long time)
public long getIterationWaitTime()
public void setNumberOfNetworkInputs(int numberOfInputs)
public int getNumberOfNetworkInputs()
public void setNumberOfOutputs(int numberOfOutputs)
public int getNumberOfOutputs()
public void setOperatorNonChainedOutputs(List<NonChainedOutput> nonChainedOutputs)
public List<NonChainedOutput> getOperatorNonChainedOutputs(ClassLoader cl)
public void setChainedOutputs(List<StreamEdge> chainedOutputs)
public List<StreamEdge> getChainedOutputs(ClassLoader cl)
public void setInPhysicalEdges(List<StreamEdge> inEdges)
public List<StreamEdge> getInPhysicalEdges(ClassLoader cl)
public void setCheckpointingEnabled(boolean enabled)
public boolean isCheckpointingEnabled()
public void setCheckpointMode(CheckpointingMode mode)
public CheckpointingMode getCheckpointMode()
public void setUnalignedCheckpointsEnabled(boolean enabled)
public boolean isUnalignedCheckpointsEnabled()
public boolean isExactlyOnceCheckpointMode()
public java.time.Duration getAlignedCheckpointTimeout()
public void setAlignedCheckpointTimeout(java.time.Duration alignedCheckpointTimeout)
public void setMaxConcurrentCheckpoints(int maxConcurrentCheckpoints)
public int getMaxConcurrentCheckpoints()
public int getMaxSubtasksPerChannelStateFile()
public void setMaxSubtasksPerChannelStateFile(int maxSubtasksPerChannelStateFile)
public void setVertexNonChainedOutputs(List<NonChainedOutput> nonChainedOutputs)
JobVertex.getProducedDataSets()
.public List<NonChainedOutput> getVertexNonChainedOutputs(ClassLoader cl)
public void setTransitiveChainedTaskConfigs(Map<Integer,StreamConfig> chainedTaskConfigs)
public Map<Integer,StreamConfig> getTransitiveChainedTaskConfigs(ClassLoader cl)
public Map<Integer,StreamConfig> getTransitiveChainedTaskConfigsWithSelf(ClassLoader cl)
public void setOperatorID(OperatorID operatorID)
public OperatorID getOperatorID()
public void setOperatorName(String name)
public String getOperatorName()
public void setChainIndex(int index)
public int getChainIndex()
public void setStateBackend(StateBackend backend)
public void setChangelogStateBackendEnabled(TernaryBoolean enabled)
@VisibleForTesting public void setStateBackendUsesManagedMemory(boolean usesManagedMemory)
public StateBackend getStateBackend(ClassLoader cl)
public TernaryBoolean isChangelogStateBackendEnabled(ClassLoader cl)
public void setSavepointDir(Path directory)
public Path getSavepointDir(ClassLoader cl)
public void setCheckpointStorage(CheckpointStorage storage)
public CheckpointStorage getCheckpointStorage(ClassLoader cl)
public void setTimerServiceProvider(InternalTimeServiceManager.Provider timerServiceProvider)
public InternalTimeServiceManager.Provider getTimerServiceProvider(ClassLoader cl)
public void setStatePartitioner(int input, KeySelector<?,?> partitioner)
public <IN,K extends Serializable> KeySelector<IN,K> getStatePartitioner(int input, ClassLoader cl)
public void setStateKeySerializer(TypeSerializer<?> serializer)
public <K> TypeSerializer<K> getStateKeySerializer(ClassLoader cl)
public void setChainStart()
public boolean isChainStart()
public void setChainEnd()
public boolean isChainEnd()
public void setGraphContainingLoops(boolean graphContainingLoops)
public boolean isGraphContainingLoops()
public static boolean requiresSorting(StreamConfig.InputConfig inputConfig)
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.