Package com.exasol.adapter.sql
Class SqlNode
- java.lang.Object
-
- com.exasol.adapter.sql.SqlNode
-
- Direct Known Subclasses:
SqlColumn,SqlExpressionList,SqlFunctionAggregate,SqlFunctionAggregateGroupConcat,SqlFunctionAggregateListagg,SqlFunctionScalar,SqlFunctionScalarCase,SqlFunctionScalarCast,SqlFunctionScalarExtract,SqlFunctionScalarJsonValue,SqlJoin,SqlLimit,SqlLiteralBool,SqlLiteralDate,SqlLiteralDouble,SqlLiteralExactnumeric,SqlLiteralInterval,SqlLiteralNull,SqlLiteralString,SqlLiteralTimestamp,SqlLiteralTimestampUtc,SqlOrderBy,SqlPredicate,SqlStatement,SqlTable
public abstract class SqlNode extends Object
Node in a graph representing a SQL query.
-
-
Constructor Summary
Constructors Constructor Description SqlNode()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract <R> Raccept(SqlNodeVisitor<R> visitor)SeeSqlNodeVisitorSqlNodegetParent()Gets parent.abstract SqlNodeTypegetType()Gets type.booleanhasParent()Has parent boolean.voidsetParent(SqlNode parent)Sets parent.
-
-
-
Method Detail
-
getType
public abstract SqlNodeType getType()
Gets type.- Returns:
- the type
-
getParent
public SqlNode getParent()
Gets parent.- Returns:
- the parent
-
setParent
public void setParent(SqlNode parent)
Sets parent.- Parameters:
parent- the parent
-
hasParent
public boolean hasParent()
Has parent boolean.- Returns:
- the boolean
-
accept
public abstract <R> R accept(SqlNodeVisitor<R> visitor) throws AdapterException
SeeSqlNodeVisitor- 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
-
-