コード例 #1
0
ファイル: ElementStage.java プロジェクト: bs1/cascading
  public ElementStage(FlowProcess flowProcess, FlowElement flowElement) {
    this.flowElement = flowElement;

    FlowElement element = flowElement;

    while (element != null) {
      if (element.hasConfigDef())
        flowProcess = new ElementFlowProcess(flowProcess, element.getConfigDef());

      if (element instanceof Pipe) element = ((Pipe) element).getParent();
      else element = null;
    }

    this.flowProcess = flowProcess;
  }
コード例 #2
0
ファイル: Pipe.java プロジェクト: Galuvian/cascading
  @Override
  public boolean isEquivalentTo(FlowElement element) {
    if (element == null) return false;

    if (this == element) return true;

    return getClass() == element.getClass();
  }