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, boolean isInfix, boolean isPrefix)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <R> Raccept(SqlNodeVisitor<R> visitor)SeeSqlNodeVisitorList<SqlNode>getArguments()ScalarFunctiongetFunction()StringgetFunctionName()intgetNumArgs()SqlNodeTypegetType()booleanisInfix()booleanisPrefix()StringtoSimpleSql()
-
-
-
Constructor Detail
-
SqlFunctionScalar
public SqlFunctionScalar(ScalarFunction function, List<SqlNode> arguments, boolean isInfix, boolean isPrefix)
-
-
Method Detail
-
getFunction
public ScalarFunction getFunction()
-
getFunctionName
public String getFunctionName()
-
getNumArgs
public int getNumArgs()
-
isInfix
public boolean isInfix()
-
isPrefix
public boolean isPrefix()
-
toSimpleSql
public String toSimpleSql()
- Specified by:
toSimpleSqlin classSqlNode- Returns:
- A SQL representation of the current graph, using EXASOL SQL syntax. It is called "SIMPLE" because it is not guaranteed to be 100 % correct SQL (e.g. might be ambiguous).
-
getType
public SqlNodeType getType()
-
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
-
-