public class OBaseExpression extends OMathExpression
OMathExpression.Operator
Modifier and Type | Field and Description |
---|---|
protected OBaseIdentifier |
identifier |
protected OInputParameter |
inputParam |
protected ONumber |
number |
protected String |
string |
childExpressions, operators
children, firstToken, id, lastToken, parent, parser, value
Constructor and Description |
---|
OBaseExpression(int id) |
OBaseExpression(OIdentifier identifier) |
OBaseExpression(OIdentifier identifier,
OModifier modifier) |
OBaseExpression(ORecordAttribute attr,
OModifier modifier) |
OBaseExpression(OrientSql p,
int id) |
OBaseExpression(String string) |
deserializeFromResult, getChildExpressions, getOperators, setChildExpressions
childrenAccept, dump, getDatabase, getValue, jjtAccept, jjtAddChild, jjtClose, jjtGetChild, jjtGetFirstToken, jjtGetLastToken, jjtGetNumChildren, jjtGetParent, jjtGetValue, jjtOpen, jjtSetFirstToken, jjtSetLastToken, jjtSetParent, jjtSetValue, toString
protected ONumber number
protected OBaseIdentifier identifier
protected OInputParameter inputParam
protected String string
public OBaseExpression(int id)
public OBaseExpression(OrientSql p, int id)
public OBaseExpression(OIdentifier identifier)
public OBaseExpression(String string)
public OBaseExpression(OIdentifier identifier, OModifier modifier)
public OBaseExpression(ORecordAttribute attr, OModifier modifier)
public String toString()
toString
in class SimpleNode
public void toString(Map<Object,Object> params, StringBuilder builder)
toString
in class OMathExpression
public Object execute(OIdentifiable iCurrentRecord, OCommandContext ctx)
execute
in class OMathExpression
public Object execute(OResult iCurrentRecord, OCommandContext ctx)
execute
in class OMathExpression
protected boolean supportsBasicCalculation()
supportsBasicCalculation
in class OMathExpression
public boolean isFunctionAny()
isFunctionAny
in class OMathExpression
public boolean isIndexedFunctionCall()
isIndexedFunctionCall
in class OMathExpression
public long estimateIndexedFunction(OFromClause target, OCommandContext context, OBinaryCompareOperator operator, Object right)
estimateIndexedFunction
in class OMathExpression
public Iterable<OIdentifiable> executeIndexedFunction(OFromClause target, OCommandContext context, OBinaryCompareOperator operator, Object right)
executeIndexedFunction
in class OMathExpression
public boolean canExecuteIndexedFunctionWithoutIndex(OFromClause target, OCommandContext context, OBinaryCompareOperator operator, Object right)
canExecuteIndexedFunctionWithoutIndex
in class OMathExpression
target
- the query targetcontext
- the execution contextoperator
- right
- public boolean allowsIndexedFunctionExecutionOnTarget(OFromClause target, OCommandContext context, OBinaryCompareOperator operator, Object right)
allowsIndexedFunctionExecutionOnTarget
in class OMathExpression
target
- the query targetcontext
- the execution contextoperator
- right
- public boolean executeIndexedFunctionAfterIndexSearch(OFromClause target, OCommandContext context, OBinaryCompareOperator operator, Object right)
executeIndexedFunctionAfterIndexSearch
in class OMathExpression
target
- the query targetcontext
- the execution contextpublic boolean isBaseIdentifier()
isBaseIdentifier
in class OMathExpression
public OCollate getCollate(OResult currentRecord, OCommandContext ctx)
getCollate
in class OMathExpression
public boolean isEarlyCalculated(OCommandContext ctx)
isEarlyCalculated
in class OMathExpression
public boolean isExpand()
isExpand
in class OMathExpression
public OExpression getExpandContent()
getExpandContent
in class OMathExpression
public boolean needsAliases(Set<String> aliases)
needsAliases
in class OMathExpression
public boolean isAggregate()
isAggregate
in class OMathExpression
public boolean isCount()
isCount
in class OMathExpression
public SimpleNode splitForAggregation(AggregateProjectionSplit aggregateProj, OCommandContext ctx)
splitForAggregation
in class OMathExpression
public AggregationContext getAggregationContext(OCommandContext ctx)
getAggregationContext
in class OMathExpression
public OBaseExpression copy()
copy
in class OMathExpression
public boolean refersToParent()
refersToParent
in class OMathExpression
public boolean equals(Object o)
equals
in class OMathExpression
public int hashCode()
hashCode
in class OMathExpression
public void setIdentifier(OBaseIdentifier identifier)
public OBaseIdentifier getIdentifier()
public OModifier getModifier()
public List<String> getMatchPatternInvolvedAliases()
getMatchPatternInvolvedAliases
in class OMathExpression
public void applyRemove(OResultInternal result, OCommandContext ctx)
applyRemove
in class OMathExpression
public OResult serialize()
serialize
in class OMathExpression
public void deserialize(OResult fromResult)
deserialize
in class OMathExpression
public boolean isDefinedFor(OResult currentRecord)
isDefinedFor
in class OMathExpression
public boolean isDefinedFor(OElement currentRecord)
isDefinedFor
in class OMathExpression
public void extractSubQueries(OIdentifier letAlias, SubQueryCollector collector)
extractSubQueries
in class OMathExpression
public void extractSubQueries(SubQueryCollector collector)
extractSubQueries
in class OMathExpression
public boolean isCacheable()
isCacheable
in class OMathExpression
public void setInputParam(OInputParameter inputParam)
public boolean isIndexChain(OCommandContext ctx, OClass clazz)
isIndexChain
in class OMathExpression
Copyright © 2009–2020 OrientDB. All rights reserved.