Package com.exasol.adapter.sql
Class SqlFunctionScalarExtract
- java.lang.Object
-
- com.exasol.adapter.sql.SqlNode
-
- com.exasol.adapter.sql.SqlFunctionScalarExtract
-
public class SqlFunctionScalarExtract extends SqlNode
The type Sql function scalar extract.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
SqlFunctionScalarExtract.ExtractParameter
List of available parameters for the EXTRACT function.
-
Constructor Summary
Constructors Constructor Description SqlFunctionScalarExtract(SqlFunctionScalarExtract.ExtractParameter extractParameter, SqlNode argument)
Instantiates a new Sql function scalar extract.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <R> R
accept(SqlNodeVisitor<R> visitor)
SeeSqlNodeVisitor
SqlNode
getArgument()
Gets argument.String
getToExtract()
Gets to extract.SqlNodeType
getType()
Gets type.
-
-
-
Constructor Detail
-
SqlFunctionScalarExtract
public SqlFunctionScalarExtract(SqlFunctionScalarExtract.ExtractParameter extractParameter, SqlNode argument)
Instantiates a new Sql function scalar extract.- Parameters:
extractParameter
- the extract parameterargument
- the argument
-
-
Method Detail
-
getToExtract
public String getToExtract()
Gets to extract.- Returns:
- the to extract
-
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
-
-