public abstract class OBooleanExpression extends SimpleNode
Modifier and Type | Field and Description |
---|---|
static OBooleanExpression |
FALSE |
static OBooleanExpression |
TRUE |
children, firstToken, id, lastToken, parent, parser, value
Constructor and Description |
---|
OBooleanExpression(int id) |
OBooleanExpression(OrientSql p,
int id) |
childrenAccept, dump, getDatabase, getValue, jjtAccept, jjtAddChild, jjtClose, jjtGetChild, jjtGetFirstToken, jjtGetLastToken, jjtGetNumChildren, jjtGetParent, jjtGetValue, jjtOpen, jjtSetFirstToken, jjtSetLastToken, jjtSetParent, jjtSetValue, toString, toString, toString
public static final OBooleanExpression TRUE
public static final OBooleanExpression FALSE
public OBooleanExpression(int id)
public OBooleanExpression(OrientSql p, int id)
public abstract boolean evaluate(OIdentifiable currentRecord, OCommandContext ctx)
public abstract boolean evaluate(OResult currentRecord, OCommandContext ctx)
protected abstract boolean supportsBasicCalculation()
protected abstract int getNumberOfExternalCalculations()
protected abstract List<Object> getExternalCalculationConditions()
public List<OBinaryCondition> getIndexedFunctionConditions(OClass iSchemaClass, ODatabaseDocumentInternal database)
protected OAndBlock encapsulateInAndBlock(OBooleanExpression item)
public abstract OBooleanExpression copy()
copy
in class SimpleNode
public boolean isEmpty()
public abstract void extractSubQueries(SubQueryCollector collector)
public abstract boolean refersToParent()
public Optional<OUpdateItem> transformToUpdateItem()
Eg. name = 3 can be considered a condition or an assignment. This method transforms the condition in an assignment. This is used mainly for UPSERT operations.
public void translateLuceneOperator()
public static OBooleanExpression deserializeFromOResult(OResult doc)
public OResult serialize()
public void deserialize(OResult fromResult)
public abstract boolean isCacheable()
public OBooleanExpression rewriteIndexChainsAsSubqueries(OCommandContext ctx, OClass clazz)
public boolean isAlwaysTrue()
Copyright © 2009–2020 OrientDB. All rights reserved.