当前位置: 首页>>代码示例>>Java>>正文


Java Visitor.preVisit方法代码示例

本文整理汇总了Java中org.apache.flink.util.Visitor.preVisit方法的典型用法代码示例。如果您正苦于以下问题:Java Visitor.preVisit方法的具体用法?Java Visitor.preVisit怎么用?Java Visitor.preVisit使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在org.apache.flink.util.Visitor的用法示例。


在下文中一共展示了Visitor.preVisit方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: accept

import org.apache.flink.util.Visitor; //导入方法依赖的package包/类
@Override
public void accept(Visitor<OptimizerNode> visitor) {
	if (visitor.preVisit(this)) {
		if (this.input1 == null || this.input2 == null) {
			throw new CompilerException();
		}
		
		getFirstPredecessorNode().accept(visitor);
		getSecondPredecessorNode().accept(visitor);
		
		for (DagConnection connection : getBroadcastConnections()) {
			connection.getSource().accept(visitor);
		}
		
		visitor.postVisit(this);
	}
}
 
开发者ID:axbaretto,项目名称:flink,代码行数:18,代码来源:TwoInputNode.java

示例2: accept

import org.apache.flink.util.Visitor; //导入方法依赖的package包/类
@Override
public void accept(Visitor<OptimizerNode> visitor) {
	if (visitor.preVisit(this)) {
		if (this.input1 == null || this.input2 == null) {
			throw new CompilerException();
		}
		
		getFirstPredecessorNode().accept(visitor);
		getSecondPredecessorNode().accept(visitor);
		
		for (PactConnection connection : getBroadcastConnections()) {
			connection.getSource().accept(visitor);
		}
		
		visitor.postVisit(this);
	}
}
 
开发者ID:citlab,项目名称:vs.msc.ws14,代码行数:18,代码来源:TwoInputNode.java

示例3: accept

import org.apache.flink.util.Visitor; //导入方法依赖的package包/类
@Override
public void accept(Visitor<Operator<?>> visitor) {
	boolean descend = visitor.preVisit(this);
	if (descend) {
		this.input1.accept(visitor);
		this.input2.accept(visitor);
		for (Operator<?> c : this.broadcastInputs.values()) {
			c.accept(visitor);
		}
		visitor.postVisit(this);
	}
}
 
开发者ID:axbaretto,项目名称:flink,代码行数:13,代码来源:DualInputOperator.java

示例4: accept

import org.apache.flink.util.Visitor; //导入方法依赖的package包/类
/**
 * Accepts the visitor and applies it this instance. The visitors pre-visit method is called and, if returning 
 * <tt>true</tt>, the visitor is recursively applied on the single input. After the recursion returned,
 * the post-visit method is called.
 * 
 * @param visitor The visitor.
 *  
 * @see org.apache.flink.util.Visitable#accept(org.apache.flink.util.Visitor)
 */
@Override
public void accept(Visitor<Operator<?>> visitor) {
	if (visitor.preVisit(this)) {
		this.input.accept(visitor);
		for (Operator<?> c : this.broadcastInputs.values()) {
			c.accept(visitor);
		}
		visitor.postVisit(this);
	}
}
 
开发者ID:axbaretto,项目名称:flink,代码行数:20,代码来源:SingleInputOperator.java

示例5: accept

import org.apache.flink.util.Visitor; //导入方法依赖的package包/类
@Override
public void accept(Visitor<OptimizerNode> visitor) {
	if (visitor.preVisit(this)) {
		if (getPredecessorNode() != null) {
			getPredecessorNode().accept(visitor);
		} else {
			throw new CompilerException();
		}
		visitor.postVisit(this);
	}
}
 
开发者ID:axbaretto,项目名称:flink,代码行数:12,代码来源:DataSinkNode.java

示例6: accept

import org.apache.flink.util.Visitor; //导入方法依赖的package包/类
@Override
public void accept(Visitor<OptimizerNode> visitor) {
	if (visitor.preVisit(this)) {
		if (getPredecessorNode() != null) {
			getPredecessorNode().accept(visitor);
		} else {
			throw new CompilerException();
		}
		for (DagConnection connection : getBroadcastConnections()) {
			connection.getSource().accept(visitor);
		}
		visitor.postVisit(this);
	}
}
 
开发者ID:axbaretto,项目名称:flink,代码行数:15,代码来源:SingleInputNode.java

示例7: accept

import org.apache.flink.util.Visitor; //导入方法依赖的package包/类
@Override
public void accept(Visitor<PlanNode> visitor) {
	if (visitor.preVisit(this)) {
		this.input1.getSource().accept(visitor);
		this.input2.getSource().accept(visitor);
		
		for (Channel broadcastInput : getBroadcastInputs()) {
			broadcastInput.getSource().accept(visitor);
		}
		
		visitor.postVisit(this);
	}
}
 
开发者ID:axbaretto,项目名称:flink,代码行数:14,代码来源:DualInputPlanNode.java

示例8: accept

import org.apache.flink.util.Visitor; //导入方法依赖的package包/类
@Override
public void accept(Visitor<PlanNode> visitor) {
	visitor.preVisit(this);
	for (Channel c : this.inputs) {
		c.getSource().accept(visitor);
	}
	visitor.postVisit(this);
}
 
开发者ID:axbaretto,项目名称:flink,代码行数:9,代码来源:NAryUnionPlanNode.java

示例9: accept

import org.apache.flink.util.Visitor; //导入方法依赖的package包/类
@Override
public void accept(Visitor<PlanNode> visitor) {
	if (visitor.preVisit(this)) {
		this.input.getSource().accept(visitor);
		
		for (Channel broadcastInput : getBroadcastInputs()) {
			broadcastInput.getSource().accept(visitor);
		}
		
		visitor.postVisit(this);
	}
}
 
开发者ID:axbaretto,项目名称:flink,代码行数:13,代码来源:SingleInputPlanNode.java

示例10: accept

import org.apache.flink.util.Visitor; //导入方法依赖的package包/类
@Override
public void accept(Visitor<OptimizerNode> visitor) {
	if (visitor.preVisit(this)) {
		if (getPredecessorNode() != null) {
			getPredecessorNode().accept(visitor);
		} else {
			throw new CompilerException();
		}
		for (PactConnection connection : getBroadcastConnections()) {
			connection.getSource().accept(visitor);
		}
		visitor.postVisit(this);
	}
}
 
开发者ID:citlab,项目名称:vs.msc.ws14,代码行数:15,代码来源:SingleInputNode.java

示例11: accept

import org.apache.flink.util.Visitor; //导入方法依赖的package包/类
@Override
public void accept(Visitor<Operator<?>> visitor) {
	visitor.preVisit(this);
	visitor.postVisit(this);
}
 
开发者ID:axbaretto,项目名称:flink,代码行数:6,代码来源:DeltaIterationBase.java

示例12: accept

import org.apache.flink.util.Visitor; //导入方法依赖的package包/类
@Override
public void accept(Visitor<OptimizerNode> visitor) {
	if (visitor.preVisit(this)) {
		visitor.postVisit(this);
	}
}
 
开发者ID:axbaretto,项目名称:flink,代码行数:7,代码来源:DataSourceNode.java

示例13: accept

import org.apache.flink.util.Visitor; //导入方法依赖的package包/类
@Override
public void accept(Visitor<PlanNode> visitor) {
	if (visitor.preVisit(this)) {
		visitor.postVisit(this);
	}
}
 
开发者ID:axbaretto,项目名称:flink,代码行数:7,代码来源:SourcePlanNode.java

示例14: accept

import org.apache.flink.util.Visitor; //导入方法依赖的package包/类
/**
 * Accepts the visitor and applies it this instance. This method applies the visitor in a depth-first traversal.
 * The visitors pre-visit method is called and, if returning 
 * <tt>true</tt>, the visitor is recursively applied on the single input. After the recursion returned,
 * the post-visit method is called.
 * 
 * @param visitor The visitor.
 *  
 * @see org.apache.flink.util.Visitable#accept(org.apache.flink.util.Visitor)
 */
@Override
public void accept(Visitor<Operator<?>> visitor) {
	boolean descend = visitor.preVisit(this);
	if (descend) {
		this.input.accept(visitor);
		visitor.postVisit(this);
	}
}
 
开发者ID:axbaretto,项目名称:flink,代码行数:19,代码来源:GenericDataSinkBase.java

示例15: accept

import org.apache.flink.util.Visitor; //导入方法依赖的package包/类
/**
 * Accepts the visitor and applies it this instance. Since the data sources have no inputs, no recursive descend
 * happens. The visitors pre-visit method is called and, if returning <tt>true</tt>, the post-visit method is called.
 * 
 * @param visitor The visitor.
 *  
 * @see org.apache.flink.util.Visitable#accept(org.apache.flink.util.Visitor)
 */
@Override
public void accept(Visitor<Operator<?>> visitor) {
	if (visitor.preVisit(this)) {
		visitor.postVisit(this);
	}
}
 
开发者ID:axbaretto,项目名称:flink,代码行数:15,代码来源:GenericDataSourceBase.java


注:本文中的org.apache.flink.util.Visitor.preVisit方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。