Class OProjectionItem
java.lang.Object
com.orientechnologies.orient.core.sql.parser.SimpleNode
com.orientechnologies.orient.core.sql.parser.OProjectionItem
- All Implemented Interfaces:
Node
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Booleanprotected OIdentifierprotected booleanprotected booleanprotected OExpressionprotected ONestedProjectionFields inherited from class com.orientechnologies.orient.core.sql.parser.SimpleNode
children, firstToken, id, lastToken, PARAMETER_PLACEHOLDER, parent, parser, value -
Constructor Summary
ConstructorsConstructorDescriptionOProjectionItem(int id) OProjectionItem(OExpression expression, OIdentifier alias, ONestedProjection nestedProjection) OProjectionItem(OrientSql p, int id) -
Method Summary
Modifier and TypeMethodDescriptionstatic Objectconvert(Object value, OCommandContext context) copy()voiddeserialize(OResult fromResult) booleanexecute(OResult iCurrentRecord, OCommandContext ctx) voidextractSubQueries(SubQueryCollector collector) getAlias()returns the final alias for this projection item (the explicit alias, if defined, or the default alias)inthashCode()booleanbooleanisAll()booleanbooleanisExpand()booleanisSelf()booleanvoidsetAlias(OIdentifier alias) voidsetAll(boolean all) voidsetExpression(OExpression expression) voidsetNestedProjection(ONestedProjection nestedProjection) splitForAggregation(AggregateProjectionSplit aggregateSplit, OCommandContext ctx) INTERNAL USE ONLY this has to be invoked ONLY if the item is aggregate!!!voidtoGenericStatement(StringBuilder builder) voidtoString(Map<Object, Object> params, StringBuilder builder) Methods inherited from class com.orientechnologies.orient.core.sql.parser.SimpleNode
dump, getValue, jjtAddChild, jjtClose, jjtGetChild, jjtGetFirstToken, jjtGetLastToken, jjtGetNumChildren, jjtGetParent, jjtGetValue, jjtOpen, jjtSetFirstToken, jjtSetLastToken, jjtSetParent, jjtSetValue, toGenericStatement, toString, toString
-
Field Details
-
exclude
protected boolean exclude -
all
protected boolean all -
alias
-
expression
-
aggregate
-
nestedProjection
-
-
Constructor Details
-
OProjectionItem
public OProjectionItem(OExpression expression, OIdentifier alias, ONestedProjection nestedProjection) -
OProjectionItem
public OProjectionItem(int id) -
OProjectionItem
-
-
Method Details
-
isAll
public boolean isAll() -
setAll
public void setAll(boolean all) -
getAlias
-
setAlias
-
getExpression
-
setExpression
-
toString
- Specified by:
toStringin classSimpleNode
-
isSelf
public boolean isSelf() -
toGenericStatement
- Specified by:
toGenericStatementin classSimpleNode
-
convert
-
execute
-
getProjectionAliasAsString
returns the final alias for this projection item (the explicit alias, if defined, or the default alias)- Returns:
- the final alias for this projection item
-
getProjectionAlias
-
isExpand
public boolean isExpand() -
getExpandContent
-
isAggregate
public boolean isAggregate() -
splitForAggregation
public OProjectionItem splitForAggregation(AggregateProjectionSplit aggregateSplit, OCommandContext ctx) INTERNAL USE ONLY this has to be invoked ONLY if the item is aggregate!!!- Parameters:
aggregateSplit-
-
getAggregationContext
-
copy
- Overrides:
copyin classSimpleNode
-
equals
-
hashCode
public int hashCode() -
extractSubQueries
-
refersToParent
public boolean refersToParent() -
serialize
-
deserialize
-
setNestedProjection
-
isCacheable
public boolean isCacheable()
-