@Override public Object process(Node nd, Stack<Node> stack, NodeProcessorCtx procCtx, Object... nodeOutputs) throws SemanticException { assert (nd instanceof ExprNodeConstantDesc); // Create a dependency that has no basecols Dependency dep = new Dependency(); dep.setType(LineageInfo.DependencyType.SIMPLE); dep.setBaseCols(new LinkedHashSet<BaseColumnInfo>()); return dep; } }
@Override public Object process(Node nd, Stack<Node> stack, NodeProcessorCtx procCtx, Object... nodeOutputs) throws SemanticException { assert (nd instanceof ExprNodeConstantDesc); // Create a dependency that has no basecols Dependency dep = new Dependency(); dep.setType(LineageInfo.DependencyType.SIMPLE); dep.setBaseCols(new LinkedHashSet<BaseColumnInfo>()); return dep; } }
@Override public Object process(Node nd, Stack<Node> stack, NodeProcessorCtx procCtx, Object... nodeOutputs) throws SemanticException { assert (nd instanceof ExprNodeGenericFuncDesc || nd instanceof ExprNodeFieldDesc); // Concatenate the dependencies of all the children to compute the new // dependency. Dependency dep = new Dependency(); LinkedHashSet<BaseColumnInfo> bci_set = new LinkedHashSet<BaseColumnInfo>(); LineageInfo.DependencyType new_type = LineageInfo.DependencyType.EXPRESSION; for (Object child : nodeOutputs) { if (child == null) { continue; } Dependency child_dep = (Dependency) child; new_type = LineageCtx.getNewDependencyType(child_dep.getType(), new_type); bci_set.addAll(child_dep.getBaseCols()); } dep.setBaseCols(bci_set); dep.setType(new_type); return dep; }
Dependency dep = new Dependency(); DependencyType new_type = LineageInfo.DependencyType.EXPRESSION;
Dependency dep = new Dependency(); DependencyType new_type = LineageInfo.DependencyType.EXPRESSION;
for(ColumnInfo ci : rs.getSignature()) { Dependency dep = new Dependency(); BaseColumnInfo bci = new BaseColumnInfo(); bci.setTabAlias(tai);
for(ColumnInfo ci : rs.getSignature()) { Dependency dep = new Dependency(); BaseColumnInfo bci = new BaseColumnInfo(); bci.setTabAlias(tai);
Dependency dep = new Dependency(); DependencyType new_type = LineageInfo.DependencyType.SCRIPT; dep.setType(LineageInfo.DependencyType.SCRIPT);
Dependency dep = new Dependency(); DependencyType new_type = LineageInfo.DependencyType.SCRIPT; dep.setType(LineageInfo.DependencyType.SCRIPT);
@Override public Object process(Node nd, Stack<Node> stack, NodeProcessorCtx procCtx, Object... nodeOutputs) throws SemanticException { assert (nd instanceof ExprNodeGenericFuncDesc || nd instanceof ExprNodeFieldDesc); // Concatenate the dependencies of all the children to compute the new // dependency. Dependency dep = new Dependency(); LinkedHashSet<BaseColumnInfo> bci_set = new LinkedHashSet<BaseColumnInfo>(); LineageInfo.DependencyType new_type = LineageInfo.DependencyType.EXPRESSION; for (Object child : nodeOutputs) { if (child == null) { continue; } Dependency child_dep = (Dependency) child; new_type = LineageCtx.getNewDependencyType(child_dep.getType(), new_type); bci_set.addAll(child_dep.getBaseCols()); } dep.setBaseCols(new ArrayList<BaseColumnInfo>(bci_set)); dep.setType(new_type); return dep; }
@Override public Object process(Node nd, Stack<Node> stack, NodeProcessorCtx procCtx, Object... nodeOutputs) throws SemanticException { assert (nd instanceof ExprNodeGenericFuncDesc || nd instanceof ExprNodeFieldDesc); // Concatenate the dependencies of all the children to compute the new // dependency. Dependency dep = new Dependency(); LinkedHashSet<BaseColumnInfo> bci_set = new LinkedHashSet<BaseColumnInfo>(); LineageInfo.DependencyType new_type = LineageInfo.DependencyType.EXPRESSION; for (Object child : nodeOutputs) { if (child == null) { continue; } Dependency child_dep = (Dependency) child; new_type = LineageCtx.getNewDependencyType(child_dep.getType(), new_type); bci_set.addAll(child_dep.getBaseCols()); } dep.setBaseCols(new ArrayList<BaseColumnInfo>(bci_set)); dep.setType(new_type); return dep; }
@Override public Object process(Node nd, Stack<Node> stack, NodeProcessorCtx procCtx, Object... nodeOutputs) throws SemanticException { assert (nd instanceof ExprNodeConstantDesc || nd instanceof ExprNodeNullDesc); // Create a dependency that has no basecols Dependency dep = new Dependency(); dep.setType(LineageInfo.DependencyType.SIMPLE); dep.setBaseCols(new ArrayList<BaseColumnInfo>()); return dep; } }
@Override public Object process(Node nd, Stack<Node> stack, NodeProcessorCtx procCtx, Object... nodeOutputs) throws SemanticException { assert (nd instanceof ExprNodeConstantDesc); // Create a dependency that has no basecols Dependency dep = new Dependency(); dep.setType(LineageInfo.DependencyType.SIMPLE); dep.setBaseCols(new ArrayList<BaseColumnInfo>()); return dep; } }
Dependency dep = new Dependency(); DependencyType new_type = LineageInfo.DependencyType.EXPRESSION; StringBuilder sb = new StringBuilder();
Dependency dep = new Dependency(); DependencyType new_type = LineageInfo.DependencyType.EXPRESSION; StringBuilder sb = new StringBuilder();
for(ColumnInfo ci : rs.getSignature()) { Dependency dep = new Dependency(); BaseColumnInfo bci = new BaseColumnInfo(); bci.setTabAlias(tai);
Dependency dep = new Dependency(); DependencyType new_type = LineageInfo.DependencyType.SCRIPT; dep.setType(LineageInfo.DependencyType.SCRIPT);
for(ColumnInfo ci : rs.getSignature()) { Dependency dep = new Dependency(); BaseColumnInfo bci = new BaseColumnInfo(); bci.setTabAlias(tai);
Dependency dep = new Dependency(); DependencyType new_type = LineageInfo.DependencyType.SCRIPT; dep.setType(LineageInfo.DependencyType.SCRIPT);
@Override public Object process(Node nd, Stack<Node> stack, NodeProcessorCtx procCtx, Object... nodeOutputs) throws SemanticException { assert (nd instanceof ExprNodeGenericFuncDesc || nd instanceof ExprNodeFieldDesc); // Concatenate the dependencies of all the children to compute the new // dependency. Dependency dep = new Dependency(); LinkedHashSet<BaseColumnInfo> bci_set = new LinkedHashSet<BaseColumnInfo>(); LineageInfo.DependencyType new_type = LineageInfo.DependencyType.EXPRESSION; for (Object child : nodeOutputs) { if (child == null) { continue; } Dependency child_dep = (Dependency) child; new_type = LineageCtx.getNewDependencyType(child_dep.getType(), new_type); bci_set.addAll(child_dep.getBaseCols()); } dep.setBaseCols(bci_set); dep.setType(new_type); return dep; }