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
children, firstToken, id, lastToken, parent, parser, value
-
-
Constructor Summary
Constructors Constructor Description Projection(int id)
Projection(SqlParser p, int id)
Projection(List<ProjectionItem> items, boolean distinct)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Result
calculateSingle(CommandContext iContext, Result iRecord)
Projection
copy()
void
deserialize(Result fromResult)
boolean
equals(Object o)
void
extractSubQueries(SubQueryCollector collector)
Set<String>
getAllAliases()
Projection
getExpandContent()
List<ProjectionItem>
getItems()
int
hashCode()
boolean
isCacheable()
boolean
isDistinct()
boolean
isExpand()
boolean
refersToParent()
Result
serialize()
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
childrenAccept, dump, getValue, jjtAccept, 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)
-
Projection
public Projection(SqlParser p, 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 iContext, Result iRecord)
-
isExpand
public boolean isExpand()
-
validate
public void validate()
-
getExpandContent
public Projection getExpandContent()
-
copy
public Projection copy()
- Overrides:
copy
in classSimpleNode
-
isDistinct
public boolean isDistinct()
-
setDistinct
public void setDistinct(boolean distinct)
-
extractSubQueries
public void extractSubQueries(SubQueryCollector collector)
-
refersToParent
public boolean refersToParent()
-
serialize
public Result serialize()
-
deserialize
public void deserialize(Result fromResult)
-
isCacheable
public boolean isCacheable()
-
-