Package com.exasol.adapter.sql
Class SqlFunctionScalarCast
- java.lang.Object
-
- com.exasol.adapter.sql.SqlNode
-
- com.exasol.adapter.sql.SqlFunctionScalarCast
-
public class SqlFunctionScalarCast extends SqlNode
The type Sql function scalar cast.
-
-
Constructor Summary
Constructors Constructor Description SqlFunctionScalarCast(DataType dataType, SqlNode argument)
Create a new instance ofSqlFunctionScalarCast
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <R> R
accept(SqlNodeVisitor<R> visitor)
SeeSqlNodeVisitor
SqlNode
getArgument()
Gets argument.DataType
getDataType()
Gets data type.SqlNodeType
getType()
Gets type.
-
-
-
Constructor Detail
-
SqlFunctionScalarCast
public SqlFunctionScalarCast(DataType dataType, SqlNode argument)
Create a new instance ofSqlFunctionScalarCast
.- Parameters:
dataType
- cast data typeargument
- value to cast
-
-
Method Detail
-
getDataType
public DataType getDataType()
Gets data type.- Returns:
- the data type
-
getArgument
public SqlNode getArgument()
Gets argument.- Returns:
- the argument
-
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
-
-