Package com.arcadedb.query.sql.parser
Class Projection
- java.lang.Object
-
- com.arcadedb.query.sql.parser.SimpleNode
-
- com.arcadedb.query.sql.parser.Projection
-
- All Implemented Interfaces:
Node
public class Projection extends SimpleNode
-
-
Field Summary
Fields Modifier and Type Field Description protected boolean
distinct
-
Fields inherited from class com.arcadedb.query.sql.parser.SimpleNode
cachedStringForm, children, value
-
-
Constructor Summary
Constructors Constructor Description Projection(int id)
Projection(List<ProjectionItem> items, boolean distinct)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Result
calculateSingle(CommandContext context, Result iRecord)
Projection
copy()
boolean
equals(Object o)
void
extractSubQueries(SubQueryCollector collector)
List<String>
getAllAliases()
protected SimpleNode[]
getCacheableElements()
Projection
getExpandContent()
List<ProjectionItem>
getItems()
int
hashCode()
boolean
isDistinct()
boolean
isExpand()
boolean
refersToParent()
void
setDistinct(boolean distinct)
void
setItems(List<ProjectionItem> items)
void
toString(Map<String,Object> params, StringBuilder builder)
void
validate()
-
Methods inherited from class com.arcadedb.query.sql.parser.SimpleNode
getIdentityElements, getValue, isCacheable, jjtAddChild, jjtClose, jjtGetChild, jjtGetFirstToken, jjtGetLastToken, jjtGetNumChildren, jjtGetParent, jjtGetValue, jjtOpen, jjtSetFirstToken, jjtSetLastToken, jjtSetParent, jjtSetValue, toString, toString
-
-
-
-
Constructor Detail
-
Projection
public Projection(List<ProjectionItem> items, boolean distinct)
-
Projection
public Projection(int id)
-
-
Method Detail
-
getItems
public List<ProjectionItem> getItems()
-
setItems
public void setItems(List<ProjectionItem> items)
-
toString
public void toString(Map<String,Object> params, StringBuilder builder)
- Overrides:
toString
in classSimpleNode
-
calculateSingle
public Result calculateSingle(CommandContext context, Result iRecord)
-
isExpand
public boolean isExpand()
-
validate
public void validate()
-
getExpandContent
public Projection getExpandContent()
-
copy
public Projection copy()
- Overrides:
copy
in classSimpleNode
-
equals
public boolean equals(Object o)
- Overrides:
equals
in classSimpleNode
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classSimpleNode
-
isDistinct
public boolean isDistinct()
-
setDistinct
public void setDistinct(boolean distinct)
-
extractSubQueries
public void extractSubQueries(SubQueryCollector collector)
-
refersToParent
public boolean refersToParent()
- Overrides:
refersToParent
in classSimpleNode
-
getCacheableElements
protected SimpleNode[] getCacheableElements()
- Overrides:
getCacheableElements
in classSimpleNode
-
-