本文整理了Java中org.apache.tez.dag.api.Vertex.equals()
方法的一些代码示例,展示了Vertex.equals()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Vertex.equals()
方法的具体详情如下:
包路径:org.apache.tez.dag.api.Vertex
类名称:Vertex
方法名:equals
暂无
代码示例来源:origin: stackoverflow.com
protected boolean checkIfSameEdge(Vertex to, Vertex from) {
if(to.equals(this.from) && from.equals(this.to) || to.equals(this.to) && from.equals(this.from)) {
return true;
return false;
}
代码示例来源:origin: org.apache.tez/tez-api
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (getClass() != obj.getClass())
return false;
Edge other = (Edge) obj;
if (inputVertex == null) {
if (other.inputVertex != null)
return false;
} else if (!inputVertex.equals(other.inputVertex))
return false;
if (outputVertex == null) {
if (other.outputVertex != null)
return false;
} else if (!outputVertex.equals(other.outputVertex))
return false;
return true;
}
}
代码示例来源:origin: org.apache.tez/tez-api
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (getClass() != obj.getClass())
return false;
GroupInputEdge other = (GroupInputEdge) obj;
if (inputVertexGroup == null) {
if (other.inputVertexGroup != null)
return false;
} else if (!inputVertexGroup.equals(other.inputVertexGroup))
return false;
if (outputVertex == null) {
if (other.outputVertex != null)
return false;
} else if (!outputVertex.equals(other.outputVertex))
return false;
return true;
}
}
代码示例来源:origin: stackoverflow.com
while(!queue.isEmpty()) {
Vertex d = queue.remove();
if(!d.equals(destination)) {
ArrayList<Edge> d_outgoingEdges = outgoingEdges.get(d);
for(Edge e : d_outgoingEdges) {
代码示例来源:origin: org.apache.tez/tez-api
if (edge.getOutputVertex().equals(pop.v)) {
throw new IllegalStateException("DAG contains a self-cycle on vertex:" + pop.v.getName());
内容来源于网络,如有侵权,请联系作者删除!