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 classSqlFunctionScalarExtract.ExtractParameterList 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> Raccept(SqlNodeVisitor<R> visitor)SeeSqlNodeVisitorSqlNodegetArgument()Gets argument.StringgetToExtract()Gets to extract.SqlNodeTypegetType()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: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
-
-