public class CommitterOperatorFactory<CommitT,GlobalCommitT>
extends org.apache.flink.streaming.api.operators.AbstractStreamOperatorFactory<CommitT>
implements org.apache.flink.streaming.api.operators.OneInputStreamOperatorFactory<CommitT,CommitT>
StreamOperatorFactory
for CommitterOperator
.Modifier and Type | Field and Description |
---|---|
protected NavigableMap<Long,GlobalCommitT> |
committablesPerCheckpoint
Group the committable by the checkpoint id.
|
protected CommittableStateManager<GlobalCommitT> |
committableStateManager |
protected Committer<CommitT,GlobalCommitT> |
committer
Aggregate committables to global committables and commit the global committables to the
external system.
|
protected Committer.Factory<CommitT,GlobalCommitT> |
committerFactory |
protected Long |
endInputWatermark |
protected boolean |
forceSingleParallelism
Whether to check the parallelism while runtime.
|
protected String |
initialCommitUser
This commitUser is valid only for new jobs.
|
protected boolean |
streamingCheckpointEnabled |
Constructor and Description |
---|
CommitterOperatorFactory(boolean streamingCheckpointEnabled,
boolean forceSingleParallelism,
String initialCommitUser,
Committer.Factory<CommitT,GlobalCommitT> committerFactory,
CommittableStateManager<GlobalCommitT> committableStateManager) |
CommitterOperatorFactory(boolean streamingCheckpointEnabled,
boolean forceSingleParallelism,
String initialCommitUser,
Committer.Factory<CommitT,GlobalCommitT> committerFactory,
CommittableStateManager<GlobalCommitT> committableStateManager,
Long endInputWatermark) |
Modifier and Type | Method and Description |
---|---|
<T extends org.apache.flink.streaming.api.operators.StreamOperator<CommitT>> |
createStreamOperator(org.apache.flink.streaming.api.operators.StreamOperatorParameters<CommitT> parameters) |
Class<? extends org.apache.flink.streaming.api.operators.StreamOperator> |
getStreamOperatorClass(ClassLoader classLoader) |
getChainingStrategy, getMailboxExecutor, setChainingStrategy, setMailboxExecutor, setProcessingTimeService
protected final boolean streamingCheckpointEnabled
protected final boolean forceSingleParallelism
protected final String initialCommitUser
protected final NavigableMap<Long,GlobalCommitT> committablesPerCheckpoint
protected final Committer.Factory<CommitT,GlobalCommitT> committerFactory
protected final CommittableStateManager<GlobalCommitT> committableStateManager
protected Committer<CommitT,GlobalCommitT> committer
protected final Long endInputWatermark
public CommitterOperatorFactory(boolean streamingCheckpointEnabled, boolean forceSingleParallelism, String initialCommitUser, Committer.Factory<CommitT,GlobalCommitT> committerFactory, CommittableStateManager<GlobalCommitT> committableStateManager)
public CommitterOperatorFactory(boolean streamingCheckpointEnabled, boolean forceSingleParallelism, String initialCommitUser, Committer.Factory<CommitT,GlobalCommitT> committerFactory, CommittableStateManager<GlobalCommitT> committableStateManager, Long endInputWatermark)
public <T extends org.apache.flink.streaming.api.operators.StreamOperator<CommitT>> T createStreamOperator(org.apache.flink.streaming.api.operators.StreamOperatorParameters<CommitT> parameters)
createStreamOperator
in interface org.apache.flink.streaming.api.operators.StreamOperatorFactory<CommitT>
public Class<? extends org.apache.flink.streaming.api.operators.StreamOperator> getStreamOperatorClass(ClassLoader classLoader)
getStreamOperatorClass
in interface org.apache.flink.streaming.api.operators.StreamOperatorFactory<CommitT>
Copyright © 2023–2025 The Apache Software Foundation. All rights reserved.