Package io.trino.sql.tree
Class Merge
- java.lang.Object
-
- io.trino.sql.tree.Node
-
- io.trino.sql.tree.Statement
-
- io.trino.sql.tree.Merge
-
public final class Merge extends Statement
-
-
Constructor Summary
Constructors Constructor Description Merge(NodeLocation location, Table table, Optional<Identifier> targetAlias, Relation relation, Expression expression, List<MergeCase> mergeCases)Merge(Table table, Optional<Identifier> targetAlias, Relation relation, Expression expression, List<MergeCase> mergeCases)Merge(Optional<NodeLocation> location, Table table, Optional<Identifier> targetAlias, Relation relation, Expression expression, List<MergeCase> mergeCases)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <R,C>
Raccept(AstVisitor<R,C> visitor, C context)Accessible forAstVisitor, useAstVisitor.process(Node, Object)instead.booleanequals(Object o)List<? extends Node>getChildren()ExpressiongetExpression()List<MergeCase>getMergeCases()RelationgetRelation()TablegetTable()Optional<Identifier>getTargetAlias()inthashCode()StringtoString()-
Methods inherited from class io.trino.sql.tree.Node
getLocation, shallowEquals
-
-
-
-
Constructor Detail
-
Merge
public Merge(Table table, Optional<Identifier> targetAlias, Relation relation, Expression expression, List<MergeCase> mergeCases)
-
Merge
public Merge(NodeLocation location, Table table, Optional<Identifier> targetAlias, Relation relation, Expression expression, List<MergeCase> mergeCases)
-
Merge
public Merge(Optional<NodeLocation> location, Table table, Optional<Identifier> targetAlias, Relation relation, Expression expression, List<MergeCase> mergeCases)
-
-
Method Detail
-
getTable
public Table getTable()
-
getTargetAlias
public Optional<Identifier> getTargetAlias()
-
getRelation
public Relation getRelation()
-
getExpression
public Expression getExpression()
-
accept
public <R,C> R accept(AstVisitor<R,C> visitor, C context)
Description copied from class:NodeAccessible forAstVisitor, useAstVisitor.process(Node, Object)instead.
-
getChildren
public List<? extends Node> getChildren()
- Specified by:
getChildrenin classNode
-
-