Class OJson
java.lang.Object
com.orientechnologies.orient.core.sql.parser.SimpleNode
com.orientechnologies.orient.core.sql.parser.OJson
- All Implemented Interfaces:
Node
-
Field Summary
FieldsFields inherited from class com.orientechnologies.orient.core.sql.parser.SimpleNode
children, firstToken, id, lastToken, PARAMETER_PLACEHOLDER, parent, parser, value -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcopy()voiddeserialize(OResult fromResult) booleanvoidextractSubQueries(SubQueryCollector collector) inthashCode()booleanbooleanbooleanneedsAliases(Set<String> aliases) booleansplitForAggregation(AggregateProjectionSplit aggregateSplit, OCommandContext ctx) toDocument(OIdentifiable source, OCommandContext ctx) voidtoGenericStatement(StringBuilder builder) toMap(OIdentifiable source, OCommandContext ctx) toMap(OResult source, OCommandContext ctx) toObjectDetermineType(OIdentifiable source, OCommandContext ctx) toObjectDetermineType(OResult source, OCommandContext ctx) choosing return type is based on existence of @class and @type field in JSONvoidtoString(Map<Object, Object> params, StringBuilder builder) Methods inherited from class com.orientechnologies.orient.core.sql.parser.SimpleNode
dump, getDatabase, getValue, jjtAddChild, jjtClose, jjtGetChild, jjtGetFirstToken, jjtGetLastToken, jjtGetNumChildren, jjtGetParent, jjtGetValue, jjtOpen, jjtSetFirstToken, jjtSetLastToken, jjtSetParent, jjtSetValue, toGenericStatement, toString, toString
-
Field Details
-
items
-
-
Constructor Details
-
OJson
public OJson(int id) -
OJson
-
-
Method Details
-
toString
- Specified by:
toStringin classSimpleNode
-
toGenericStatement
- Specified by:
toGenericStatementin classSimpleNode
-
toDocument
-
toObjectDetermineType
choosing return type is based on existence of @class and @type field in JSON- Parameters:
source-ctx-- Returns:
-
toObjectDetermineType
-
toMap
-
toMap
-
needsAliases
-
isAggregate
public boolean isAggregate() -
splitForAggregation
-
copy
- Overrides:
copyin classSimpleNode
-
equals
-
hashCode
public int hashCode() -
extractSubQueries
-
refersToParent
public boolean refersToParent() -
serialize
-
deserialize
-
addItem
-
isCacheable
public boolean isCacheable()
-