public class AggregateProjectionSplit extends Object
select max(a + b) + (max(b + c * 2) + 1 + 2) * 3 as foo, max(d) + max(e), f from " + className
will become
a + b AS _$$$OALIAS$$_1, b + c * 2 AS _$$$OALIAS$$_3, d AS _$$$OALIAS$$_5, e AS _$$$OALIAS$$_7, f
max(_$$$OALIAS$$_1) AS _$$$OALIAS$$_0, max(_$$$OALIAS$$_3) AS _$$$OALIAS$$_2, max(_$$$OALIAS$$_5) AS _$$$OALIAS$$_4, max(_$$$OALIAS$$_7) AS _$$$OALIAS$$_6, f
_$$$OALIAS$$_0 + (_$$$OALIAS$$_2 + 1 + 2) * 3 AS `foo`, _$$$OALIAS$$_4 + _$$$OALIAS$$_6 AS `max(d) + max(e)`, f
Modifier and Type | Field and Description |
---|---|
protected List<OProjectionItem> |
aggregate |
protected static String |
GENERATED_ALIAS_PREFIX |
protected int |
nextAliasId |
protected List<OProjectionItem> |
preAggregate |
Constructor and Description |
---|
AggregateProjectionSplit() |
Modifier and Type | Method and Description |
---|---|
List<OProjectionItem> |
getAggregate() |
OIdentifier |
getNextAlias() |
List<OProjectionItem> |
getPreAggregate() |
void |
reset()
clean the content, but NOT the counter!
|
void |
setAggregate(List<OProjectionItem> aggregate) |
void |
setPreAggregate(List<OProjectionItem> preAggregate) |
protected static final String GENERATED_ALIAS_PREFIX
protected int nextAliasId
protected List<OProjectionItem> preAggregate
protected List<OProjectionItem> aggregate
public OIdentifier getNextAlias()
public List<OProjectionItem> getPreAggregate()
public void setPreAggregate(List<OProjectionItem> preAggregate)
public List<OProjectionItem> getAggregate()
public void setAggregate(List<OProjectionItem> aggregate)
public void reset()
Copyright © 2009–2020 OrientDB. All rights reserved.