Package com.exasol.adapter.sql
Class SqlFunctionScalar
- java.lang.Object
-
- com.exasol.adapter.sql.SqlNode
-
- com.exasol.adapter.sql.SqlFunctionScalar
-
public class SqlFunctionScalar extends SqlNode
A simple scalar function with a name and zero or more arguments.Scalar functions that are more complex, like CASE or CAST, are defined in separate classes.
-
-
Constructor Summary
Constructors Constructor Description SqlFunctionScalar(ScalarFunction function, List<SqlNode> arguments)Instantiates a new Sql function scalar.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <R> Raccept(SqlNodeVisitor<R> visitor)SeeSqlNodeVisitorList<SqlNode>getArguments()Gets arguments.ScalarFunctiongetFunction()Gets function.StringgetFunctionName()Gets function name.SqlNodeTypegetType()Gets type.
-
-
-
Constructor Detail
-
SqlFunctionScalar
public SqlFunctionScalar(ScalarFunction function, List<SqlNode> arguments)
Instantiates a new Sql function scalar.- Parameters:
function- the functionarguments- the arguments
-
-
Method Detail
-
getFunction
public ScalarFunction getFunction()
Gets function.- Returns:
- the function
-
getFunctionName
public String getFunctionName()
Gets function name.- Returns:
- the function name
-
getType
public SqlNodeType getType()
Description copied from class:SqlNodeGets type.
-
accept
public <R> R accept(SqlNodeVisitor<R> visitor) throws AdapterException
Description copied from class:SqlNodeSeeSqlNodeVisitor- Specified by:
acceptin classSqlNode- Type Parameters:
R- generic SqlNodeVisitor type- Parameters:
visitor- The visitor object on which the appropriate visit(sqlNode) method is called- Returns:
- visited object
- Throws:
AdapterException- can be thrown
-
-