public class DefaultTwoOutputNonPartitionedContext<OUT1,OUT2> extends Object implements TwoOutputNonPartitionedContext<OUT1,OUT2>
TwoOutputNonPartitionedContext
.Modifier and Type | Field and Description |
---|---|
protected DefaultRuntimeContext |
context |
protected Collector<OUT1> |
firstCollector |
protected Collector<OUT2> |
secondCollector |
Constructor and Description |
---|
DefaultTwoOutputNonPartitionedContext(DefaultRuntimeContext context,
DefaultPartitionedContext partitionedContext,
Collector<OUT1> firstCollector,
Collector<OUT2> secondCollector,
boolean isKeyed,
Set<Object> keySet) |
Modifier and Type | Method and Description |
---|---|
void |
applyToAllPartitions(TwoOutputApplyPartitionFunction<OUT1,OUT2> applyPartitionFunction)
Apply a function to all partitions.
|
JobInfo |
getJobInfo()
Get the
JobInfo of this process function. |
MetricGroup |
getMetricGroup()
Get the metric group of this process function.
|
TaskInfo |
getTaskInfo()
Get the
TaskInfo of this process function. |
protected final DefaultRuntimeContext context
public DefaultTwoOutputNonPartitionedContext(DefaultRuntimeContext context, DefaultPartitionedContext partitionedContext, Collector<OUT1> firstCollector, Collector<OUT2> secondCollector, boolean isKeyed, Set<Object> keySet)
public void applyToAllPartitions(TwoOutputApplyPartitionFunction<OUT1,OUT2> applyPartitionFunction) throws Exception
TwoOutputNonPartitionedContext
applyToAllPartitions
in interface TwoOutputNonPartitionedContext<OUT1,OUT2>
Exception
public JobInfo getJobInfo()
RuntimeContext
JobInfo
of this process function.getJobInfo
in interface RuntimeContext
public TaskInfo getTaskInfo()
RuntimeContext
TaskInfo
of this process function.getTaskInfo
in interface RuntimeContext
public MetricGroup getMetricGroup()
RuntimeContext
getMetricGroup
in interface RuntimeContext
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.