Class DefaultTwoOutputPartitionedContext<OUT1,OUT2>
java.lang.Object
org.apache.flink.datastream.impl.context.AbstractPartitionedContext
org.apache.flink.datastream.impl.context.DefaultTwoOutputPartitionedContext<OUT1,OUT2>
- All Implemented Interfaces:
org.apache.flink.datastream.api.context.BasePartitionedContext,org.apache.flink.datastream.api.context.RuntimeContext,org.apache.flink.datastream.api.context.TwoOutputPartitionedContext<OUT1,OUT2>
public class DefaultTwoOutputPartitionedContext<OUT1,OUT2>
extends AbstractPartitionedContext
implements org.apache.flink.datastream.api.context.TwoOutputPartitionedContext<OUT1,OUT2>
The default implementation of
TwoOutputPartitionedContext.-
Field Summary
FieldsModifier and TypeFieldDescriptionTheDefaultTwoOutputNonPartitionedContextandDefaultTwoOutputPartitionedContextcreate a circular reference, so thenonPartitionedContextfield ofDefaultTwoOutputPartitionedContextshould be set in a separate method,setNonPartitionedContext(org.apache.flink.datastream.api.context.TwoOutputNonPartitionedContext<OUT1, OUT2>), rather than in the constructor.Fields inherited from class org.apache.flink.datastream.impl.context.AbstractPartitionedContext
context, processingTimeManager, stateManager -
Constructor Summary
ConstructorsConstructorDescriptionDefaultTwoOutputPartitionedContext(org.apache.flink.datastream.api.context.RuntimeContext context, Supplier<Object> currentKeySupplier, BiConsumer<Runnable, Object> processorWithKey, org.apache.flink.datastream.api.context.ProcessingTimeManager processingTimeManager, org.apache.flink.streaming.api.operators.StreamingRuntimeContext operatorContext, org.apache.flink.api.common.state.OperatorStateStore operatorStateStore) -
Method Summary
Modifier and TypeMethodDescriptionvoidsetNonPartitionedContext(org.apache.flink.datastream.api.context.TwoOutputNonPartitionedContext<OUT1, OUT2> nonPartitionedContext) Methods inherited from class org.apache.flink.datastream.impl.context.AbstractPartitionedContext
getJobInfo, getMetricGroup, getProcessingTimeManager, getStateManager, getTaskInfoMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.flink.datastream.api.context.BasePartitionedContext
getProcessingTimeManager, getStateManagerMethods inherited from interface org.apache.flink.datastream.api.context.RuntimeContext
getJobInfo, getMetricGroup, getTaskInfo
-
Field Details
-
nonPartitionedContext
protected org.apache.flink.datastream.api.context.TwoOutputNonPartitionedContext<OUT1,OUT2> nonPartitionedContextTheDefaultTwoOutputNonPartitionedContextandDefaultTwoOutputPartitionedContextcreate a circular reference, so thenonPartitionedContextfield ofDefaultTwoOutputPartitionedContextshould be set in a separate method,setNonPartitionedContext(org.apache.flink.datastream.api.context.TwoOutputNonPartitionedContext<OUT1, OUT2>), rather than in the constructor.
-
-
Constructor Details
-
DefaultTwoOutputPartitionedContext
public DefaultTwoOutputPartitionedContext(org.apache.flink.datastream.api.context.RuntimeContext context, Supplier<Object> currentKeySupplier, BiConsumer<Runnable, Object> processorWithKey, org.apache.flink.datastream.api.context.ProcessingTimeManager processingTimeManager, org.apache.flink.streaming.api.operators.StreamingRuntimeContext operatorContext, org.apache.flink.api.common.state.OperatorStateStore operatorStateStore)
-
-
Method Details