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> R
accept(SqlNodeVisitor<R> visitor)
SeeSqlNodeVisitor
List<SqlNode>
getArguments()
Gets arguments.ScalarFunction
getFunction()
Gets function.String
getFunctionName()
Gets function name.SqlNodeType
getType()
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:SqlNode
Gets type.
-
accept
public <R> R accept(SqlNodeVisitor<R> visitor) throws AdapterException
Description copied from class:SqlNode
SeeSqlNodeVisitor
- Specified by:
accept
in 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
-
-