public class NaryOperator extends OperatorExpression
| Modifier and Type | Field and Description |
|---|---|
protected Expression[] |
arg |
protected boolean |
isPrefix |
opName| Constructor and Description |
|---|
NaryOperator(java.lang.String opName,
java.util.List<Expression> arg) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addTopRelation(java.util.Map<org.ojai.FieldPath,java.util.List<NaryOperator>> topRelations,
org.ojai.FieldPath fieldPath,
NaryOperator relOp) |
void |
emitSql(java.lang.StringBuilder sb,
java.lang.String tableAlias)
Emit this expression's contribution to the string (where clause).
|
void |
gatherExpressions(int depth,
java.util.Map<org.ojai.FieldPath,java.util.List<NaryOperator>> topRelations,
java.util.Set<Expression> otherPredicates)
TODO: doc
|
static boolean |
isLogicalOperator(java.lang.String name) |
boolean |
structuralEquals(Expression e)
Check to see if the two expressions are equal.
|
int |
structuralHashCode()
Generate the hash code for the Expression.
|
org.ojai.store.QueryCondition |
toQueryCondition(OjaiConnection ojaiConnection)
Deprecated.
|
void |
visit(ExpressionVisitor ev)
Visit this node.
|
toStringprotected final boolean isPrefix
protected final Expression[] arg
public NaryOperator(java.lang.String opName,
java.util.List<Expression> arg)
public static boolean isLogicalOperator(java.lang.String name)
public void emitSql(java.lang.StringBuilder sb,
java.lang.String tableAlias)
ExpressionemitSql in class Expressionsb - where to write totableAlias - the table alias to use for field namespublic boolean structuralEquals(Expression e)
ExpressionstructuralEquals in class Expressione - the other expression to compare withpublic int structuralHashCode()
ExpressionstructuralHashCode in class Expressionprotected void addTopRelation(java.util.Map<org.ojai.FieldPath,java.util.List<NaryOperator>> topRelations, org.ojai.FieldPath fieldPath, NaryOperator relOp)
@Deprecated public org.ojai.store.QueryCondition toQueryCondition(OjaiConnection ojaiConnection)
ojaiConnection - an OjaiConnectionpublic void gatherExpressions(int depth,
java.util.Map<org.ojai.FieldPath,java.util.List<NaryOperator>> topRelations,
java.util.Set<Expression> otherPredicates)
ExpressiongatherExpressions in class Expressionpublic void visit(ExpressionVisitor ev)
Expressionvisit in class Expressionev - the visitor