Package com.exasol.adapter.sql
Class SqlLiteralInterval
- java.lang.Object
-
- com.exasol.adapter.sql.SqlNode
-
- com.exasol.adapter.sql.SqlLiteralInterval
-
public class SqlLiteralInterval extends SqlNode
Interval literal.
-
-
Constructor Summary
Constructors Constructor Description SqlLiteralInterval(String value, DataType type)Instantiates a new Sql literal interval.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <R> Raccept(SqlNodeVisitor<R> visitor)SeeSqlNodeVisitorDataTypegetDataType()Gets data type.SqlNodeTypegetType()Gets type.StringgetValue()Get the value.
-
-
-
Method Detail
-
getValue
public String getValue()
Get the value.- Returns:
- literal interval value in format: YYYY-MM-DD HH:MI:SS.FF6
-
getDataType
public DataType getDataType()
Gets data type.- Returns:
- the data type
-
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
-
-