Package com.arcadedb.query.sql.parser
Class NestedProjectionItem
- java.lang.Object
-
- com.arcadedb.query.sql.parser.SimpleNode
-
- com.arcadedb.query.sql.parser.NestedProjectionItem
-
- All Implemented Interfaces:
Node
public class NestedProjectionItem extends SimpleNode
-
-
Field Summary
Fields Modifier and Type Field Description protected Identifier
alias
protected boolean
exclude
protected NestedProjection
expansion
protected Expression
expression
protected boolean
rightWildcard
protected boolean
star
-
Fields inherited from class com.arcadedb.query.sql.parser.SimpleNode
children, firstToken, id, lastToken, parent, parser, value
-
-
Constructor Summary
Constructors Constructor Description NestedProjectionItem(int id)
NestedProjectionItem(SqlParser p, int id)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description NestedProjectionItem
copy()
void
deserialize(Result fromResult)
boolean
equals(Object o)
Object
expand(Expression expression, String name, Object value, CommandContext ctx, int recursion)
int
hashCode()
boolean
matches(String propertyName)
given a property name, calculates if this property name matches this nested projection item, eg.Result
serialize()
void
toString(Map<String,Object> params, StringBuilder builder)
-
Methods inherited from class com.arcadedb.query.sql.parser.SimpleNode
childrenAccept, dump, getValue, jjtAccept, jjtAddChild, jjtClose, jjtGetChild, jjtGetFirstToken, jjtGetLastToken, jjtGetNumChildren, jjtGetParent, jjtGetValue, jjtOpen, jjtSetFirstToken, jjtSetLastToken, jjtSetParent, jjtSetValue, toString, toString
-
-
-
-
Field Detail
-
exclude
protected boolean exclude
-
star
protected boolean star
-
expression
protected Expression expression
-
rightWildcard
protected boolean rightWildcard
-
expansion
protected NestedProjection expansion
-
alias
protected Identifier alias
-
-
Constructor Detail
-
NestedProjectionItem
public NestedProjectionItem(int id)
-
NestedProjectionItem
public NestedProjectionItem(SqlParser p, int id)
-
-
Method Detail
-
copy
public NestedProjectionItem copy()
- Overrides:
copy
in classSimpleNode
-
matches
public boolean matches(String propertyName)
given a property name, calculates if this property name matches this nested projection item, eg.- this is a *, so it matches any property name
- the field name for this projection item is the same as the input property name
- this item has a wildcard and the partial field is a prefix of the input property name
- Parameters:
propertyName
-- Returns:
-
toString
public void toString(Map<String,Object> params, StringBuilder builder)
- Overrides:
toString
in classSimpleNode
-
expand
public Object expand(Expression expression, String name, Object value, CommandContext ctx, int recursion)
-
serialize
public Result serialize()
-
deserialize
public void deserialize(Result fromResult)
-
-