类org.apache.flink.api.common.functions.IterationRuntimeContext源码实例Demo

下面列出了怎么用org.apache.flink.api.common.functions.IterationRuntimeContext的API类实例代码及写法,或者点击链接到github查看源代码。

源代码1 项目: Flink-CEPplus   文件: RichAsyncFunction.java
@Override
public void setRuntimeContext(RuntimeContext runtimeContext) {
	Preconditions.checkNotNull(runtimeContext);

	if (runtimeContext instanceof IterationRuntimeContext) {
		super.setRuntimeContext(
			new RichAsyncFunctionIterationRuntimeContext(
				(IterationRuntimeContext) runtimeContext));
	} else {
		super.setRuntimeContext(new RichAsyncFunctionRuntimeContext(runtimeContext));
	}
}
 
源代码2 项目: flink   文件: RichAsyncFunction.java
@Override
public void setRuntimeContext(RuntimeContext runtimeContext) {
	Preconditions.checkNotNull(runtimeContext);

	if (runtimeContext instanceof IterationRuntimeContext) {
		super.setRuntimeContext(
			new RichAsyncFunctionIterationRuntimeContext(
				(IterationRuntimeContext) runtimeContext));
	} else {
		super.setRuntimeContext(new RichAsyncFunctionRuntimeContext(runtimeContext));
	}
}
 
源代码3 项目: flink   文件: RichAsyncFunction.java
@Override
public void setRuntimeContext(RuntimeContext runtimeContext) {
	Preconditions.checkNotNull(runtimeContext);

	if (runtimeContext instanceof IterationRuntimeContext) {
		super.setRuntimeContext(
			new RichAsyncFunctionIterationRuntimeContext(
				(IterationRuntimeContext) runtimeContext));
	} else {
		super.setRuntimeContext(new RichAsyncFunctionRuntimeContext(runtimeContext));
	}
}
 
源代码4 项目: Flink-CEPplus   文件: RichIterativeCondition.java
@Override
public IterationRuntimeContext getIterationRuntimeContext() {
	throw new UnsupportedOperationException("Not support to get the IterationRuntimeContext in IterativeCondition.");
}
 
源代码5 项目: Flink-CEPplus   文件: ComputeFunction.java
void init(IterationRuntimeContext context) {
	this.runtimeContext = context;
	this.outVertex = new Vertex<>();
	this.outMsg = new Tuple2<>();
	this.edgeIterator = new EdgesIterator<>();
}
 
源代码6 项目: Flink-CEPplus   文件: GatherFunction.java
void init(IterationRuntimeContext context) {
	this.runtimeContext = context;
}
 
源代码7 项目: Flink-CEPplus   文件: ScatterFunction.java
void init(IterationRuntimeContext context) {
	this.runtimeContext = context;
	this.outValue = new Tuple2<>();
	this.edgeIterator = new EdgesIterator<>();
}
 
源代码8 项目: Flink-CEPplus   文件: ApplyFunction.java
public void init(IterationRuntimeContext iterationRuntimeContext) {
	this.runtimeContext = iterationRuntimeContext;
}
 
源代码9 项目: Flink-CEPplus   文件: GatherFunction.java
public void init(IterationRuntimeContext iterationRuntimeContext) {
	this.runtimeContext = iterationRuntimeContext;
}
 
源代码10 项目: Flink-CEPplus   文件: SumFunction.java
public void init(IterationRuntimeContext iterationRuntimeContext) {
	this.runtimeContext = iterationRuntimeContext;
}
 
@Override
public void setup(AbstractInvokable parent) {
	agg = ((IterationRuntimeContext) getUdfRuntimeContext()).getIterationAggregator(BulkIterationBase.TERMINATION_CRITERION_AGGREGATOR_NAME);
}
 
源代码12 项目: Flink-CEPplus   文件: RichAsyncFunction.java
RichAsyncFunctionIterationRuntimeContext(IterationRuntimeContext iterationRuntimeContext) {
	super(iterationRuntimeContext);

	this.iterationRuntimeContext = Preconditions.checkNotNull(iterationRuntimeContext);
}
 
@Override
public IterationRuntimeContext getIterationRuntimeContext() {
	throw new RuntimeException("This should never be called.");
}
 
@Override
public IterationRuntimeContext getIterationRuntimeContext() {
	throw new RuntimeException("This should never be called.");
}
 
@Override
public IterationRuntimeContext getIterationRuntimeContext() {
	throw new RuntimeException("This should never be called.");
}
 
@Override
public IterationRuntimeContext getIterationRuntimeContext() {
	throw new RuntimeException("This should never be called.");
}
 
@Override
public IterationRuntimeContext getIterationRuntimeContext() {
	throw new RuntimeException("This should never be called.");
}
 
@Override
public IterationRuntimeContext getIterationRuntimeContext() {
	throw new RuntimeException("This should never be called.");
}
 
@Override
public IterationRuntimeContext getIterationRuntimeContext() {
	throw new RuntimeException("This should never be called.");
}
 
@Override
public IterationRuntimeContext getIterationRuntimeContext() {
	throw new RuntimeException("This should never be called.");

}
 
@Override
public IterationRuntimeContext getIterationRuntimeContext() {
	throw new RuntimeException("This should never be called.");

}
 
@Override
public IterationRuntimeContext getIterationRuntimeContext() {
	throw new RuntimeException("This should never be called.");
}
 
源代码23 项目: flink   文件: RichIterativeCondition.java
@Override
public IterationRuntimeContext getIterationRuntimeContext() {
	throw new UnsupportedOperationException("Not support to get the IterationRuntimeContext in IterativeCondition.");
}
 
源代码24 项目: flink   文件: ComputeFunction.java
void init(IterationRuntimeContext context) {
	this.runtimeContext = context;
	this.outVertex = new Vertex<>();
	this.outMsg = new Tuple2<>();
	this.edgeIterator = new EdgesIterator<>();
}
 
源代码25 项目: flink   文件: GatherFunction.java
void init(IterationRuntimeContext context) {
	this.runtimeContext = context;
}
 
源代码26 项目: flink   文件: ScatterFunction.java
void init(IterationRuntimeContext context) {
	this.runtimeContext = context;
	this.outValue = new Tuple2<>();
	this.edgeIterator = new EdgesIterator<>();
}
 
源代码27 项目: flink   文件: ApplyFunction.java
public void init(IterationRuntimeContext iterationRuntimeContext) {
	this.runtimeContext = iterationRuntimeContext;
}
 
源代码28 项目: flink   文件: GatherFunction.java
public void init(IterationRuntimeContext iterationRuntimeContext) {
	this.runtimeContext = iterationRuntimeContext;
}
 
源代码29 项目: flink   文件: SumFunction.java
public void init(IterationRuntimeContext iterationRuntimeContext) {
	this.runtimeContext = iterationRuntimeContext;
}
 
源代码30 项目: flink   文件: ChainedTerminationCriterionDriver.java
@Override
public void setup(AbstractInvokable parent) {
	agg = ((IterationRuntimeContext) getUdfRuntimeContext()).getIterationAggregator(BulkIterationBase.TERMINATION_CRITERION_AGGREGATOR_NAME);
}
 
 类方法
 同包方法