public class RelationalOperator extends NaryOperator
arg, isPrefixopName| Constructor and Description |
|---|
RelationalOperator(java.lang.String opName,
java.util.List<Expression> arg)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
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
|
org.ojai.FieldPath |
getLeftField()
Get the field path in the left operand.
|
LiteralExpression |
getRightLiteral()
Get the literal in the right operand.
|
void |
visit(ExpressionVisitor ev)
Visit this node.
|
addTopRelation, isLogicalOperator, structuralEquals, structuralHashCode, toQueryConditiontoStringpublic RelationalOperator(java.lang.String opName,
java.util.List<Expression> arg)
opName - name of operatorarg - argument listpublic void gatherExpressions(int depth,
java.util.Map<org.ojai.FieldPath,java.util.List<NaryOperator>> topRelations,
java.util.Set<Expression> otherPredicates)
ExpressiongatherExpressions in class NaryOperatorpublic void emitSql(java.lang.StringBuilder sb,
java.lang.String tableAlias)
ExpressionemitSql in class NaryOperatorsb - where to write totableAlias - the table alias to use for field namespublic org.ojai.FieldPath getLeftField()
public LiteralExpression getRightLiteral()
public void visit(ExpressionVisitor ev)
Expressionvisit in class NaryOperatorev - the visitor