Package io.trino.sql.tree
Class JsonObjectMember
- java.lang.Object
-
- io.trino.sql.tree.Node
-
- io.trino.sql.tree.JsonObjectMember
-
public class JsonObjectMember extends Node
-
-
Constructor Summary
Constructors Constructor Description JsonObjectMember(Expression key, Expression value, Optional<JsonPathParameter.JsonFormat> format)JsonObjectMember(NodeLocation location, Expression key, Expression value, Optional<JsonPathParameter.JsonFormat> format)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)List<? extends Node>getChildren()Optional<JsonPathParameter.JsonFormat>getFormat()ExpressiongetKey()ExpressiongetValue()inthashCode()booleanshallowEquals(Node other)Compare with another node by considering internal state excluding any Node returned by getChildren()StringtoString()-
Methods inherited from class io.trino.sql.tree.Node
accept, getLocation
-
-
-
-
Constructor Detail
-
JsonObjectMember
public JsonObjectMember(NodeLocation location, Expression key, Expression value, Optional<JsonPathParameter.JsonFormat> format)
-
JsonObjectMember
public JsonObjectMember(Expression key, Expression value, Optional<JsonPathParameter.JsonFormat> format)
-
-
Method Detail
-
getKey
public Expression getKey()
-
getValue
public Expression getValue()
-
getFormat
public Optional<JsonPathParameter.JsonFormat> getFormat()
-
getChildren
public List<? extends Node> getChildren()
- Specified by:
getChildrenin classNode
-
shallowEquals
public boolean shallowEquals(Node other)
Description copied from class:NodeCompare with another node by considering internal state excluding any Node returned by getChildren()- Overrides:
shallowEqualsin classNode
-
-