本文整理汇总了Java中org.apache.flink.util.Visitor类的典型用法代码示例。如果您正苦于以下问题:Java Visitor类的具体用法?Java Visitor怎么用?Java Visitor使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
Visitor类属于org.apache.flink.util包,在下文中一共展示了Visitor类的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);
}
}
示例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);
}
}
示例3: accept
import org.apache.flink.util.Visitor; //导入依赖的package包/类
/**
* Traverses the job depth first from all data sinks on towards the sources.
*
* @see Visitable#accept(Visitor)
*/
@Override
public void accept(Visitor<Operator<?>> visitor) {
for (GenericDataSinkBase<?> sink : this.sinks) {
sink.accept(visitor);
}
}
示例4: 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);
}
}
示例5: 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);
}
}
示例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();
}
visitor.postVisit(this);
}
}
示例7: 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);
}
}
示例8: 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);
}
}
示例9: acceptForStepFunction
import org.apache.flink.util.Visitor; //导入依赖的package包/类
@Override
public void acceptForStepFunction(Visitor<PlanNode> visitor) {
this.rootOfStepFunction.accept(visitor);
if(this.rootOfTerminationCriterion != null) {
this.rootOfTerminationCriterion.accept(visitor);
}
}
示例10: 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);
}
示例11: 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);
}
}
示例12: 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);
}
}
示例13: accept
import org.apache.flink.util.Visitor; //导入依赖的package包/类
@Override
public void accept(Visitor<Operator<?>> visitor) {
visitor.preVisit(this);
visitor.postVisit(this);
}
示例14: accept
import org.apache.flink.util.Visitor; //导入依赖的package包/类
@Override
public void accept(Visitor<OptimizerNode> visitor) {
if (visitor.preVisit(this)) {
visitor.postVisit(this);
}
}
示例15: acceptForStepFunction
import org.apache.flink.util.Visitor; //导入依赖的package包/类
public void acceptForStepFunction(Visitor<OptimizerNode> visitor) {
this.singleRoot.accept(visitor);
}