001 002package gudusoft.gsqlparser.dlineage.dataflow.model; 003 004import gudusoft.gsqlparser.nodes.TFunctionCall; 005import gudusoft.gsqlparser.nodes.TParseTreeNode; 006 007public class FunctionResultColumn extends ResultColumn { 008 009 private TParseTreeNode function; 010 011 public FunctionResultColumn(ResultSet resultSet, TParseTreeNode function, TParseTreeNode functionName) { 012 super(resultSet, functionName); 013 if (function instanceof TFunctionCall) { 014 this.name = functionName.toString(); 015 this.fullName = name; 016 } else { 017 this.name = "case-when"; 018 this.fullName = "case-when"; 019 } 020 this.function = function; 021 } 022 023 public TParseTreeNode getFunction() { 024 return function; 025 } 026}