示例#1
0
 private void rebuildInputNodesConnections(List<TableNode> tableNodes, PigMapData mapData) {
   for (TableNode node : tableNodes) {
     if (node != null) {
       if (!node.getLookupIncomingConnections().isEmpty()) {
         if (!PigMapUtil.isExpressionEditable(node)) {
           node.setExpression("");
           PigMapUtil.detachLookupSource(node, mapData);
         }
       }
     }
   }
 }
示例#2
0
 private void rebuildOutputNodesConnections(
     List<? extends TableNode> tableNodes, PigMapData mapData) {
   for (TableNode node : tableNodes) {
     if (node != null) {
       if (!node.getIncomingConnections().isEmpty()) {
         if (!PigMapUtil.isExpressionEditable(node)) {
           node.setExpression("");
           PigMapUtil.detachConnectionsSouce(node, mapData);
         }
       }
     }
   }
 }