Package io.trino.sql.tree
Class IntervalLiteral
java.lang.Object
io.trino.sql.tree.Node
io.trino.sql.tree.Expression
io.trino.sql.tree.Literal
io.trino.sql.tree.IntervalLiteral
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumstatic enum -
Constructor Summary
ConstructorsConstructorDescriptionIntervalLiteral(NodeLocation location, String value, IntervalLiteral.Sign sign, IntervalLiteral.IntervalField startField, Optional<IntervalLiteral.IntervalField> endField) IntervalLiteral(String value, IntervalLiteral.Sign sign, IntervalLiteral.IntervalField startField) IntervalLiteral(String value, IntervalLiteral.Sign sign, IntervalLiteral.IntervalField startField, Optional<IntervalLiteral.IntervalField> endField) -
Method Summary
Modifier and TypeMethodDescription<R,C> R accept(AstVisitor<R, C> visitor, C context) Accessible forAstVisitor, useAstVisitor.process(Node, Object)instead.booleangetSign()getValue()inthashCode()booleanbooleanshallowEquals(Node other) Compare with another node by considering internal state excluding any Node returned by getChildren()Methods inherited from class io.trino.sql.tree.Literal
getChildrenMethods inherited from class io.trino.sql.tree.Expression
toStringMethods inherited from class io.trino.sql.tree.Node
getLocation
-
Constructor Details
-
IntervalLiteral
public IntervalLiteral(String value, IntervalLiteral.Sign sign, IntervalLiteral.IntervalField startField) -
IntervalLiteral
public IntervalLiteral(String value, IntervalLiteral.Sign sign, IntervalLiteral.IntervalField startField, Optional<IntervalLiteral.IntervalField> endField) -
IntervalLiteral
public IntervalLiteral(NodeLocation location, String value, IntervalLiteral.Sign sign, IntervalLiteral.IntervalField startField, Optional<IntervalLiteral.IntervalField> endField)
-
-
Method Details
-
getValue
-
getSign
-
getStartField
-
getEndField
-
isYearToMonth
public boolean isYearToMonth() -
accept
Description copied from class:ExpressionAccessible forAstVisitor, useAstVisitor.process(Node, Object)instead. -
hashCode
public int hashCode() -
equals
-
shallowEquals
Description copied from class:NodeCompare with another node by considering internal state excluding any Node returned by getChildren()- Overrides:
shallowEqualsin classNode
-