public class ExternalEdgeRecognizerRelationalBinaryExpr extends DefaultRelationalBinaryExpr implements RelationalBinaryExpr
RelationalBinaryExpr implementation which uses a specific
evaluation context to locate or
recognize a given sequence based column qualifier within the context of the
expression.
For external edges, we have only the row key fields to evaluate and the predicate tree may contain predicates with properties which target fields anywhere in the target graph including properties outside the row key. So for external edge evaluators always return true when a value is not found.
ExternalEdgeRecognizerContext| Modifier and Type | Field and Description |
|---|---|
protected Endpoint |
endpoint |
protected GraphRecognizerSupport |
recognizer |
literal, operator, property, propertyPath| Constructor and Description |
|---|
ExternalEdgeRecognizerRelationalBinaryExpr(org.plasma.query.model.Property property,
org.plasma.query.model.Literal literal,
org.plasma.query.model.RelationalOperator operator)
Constructs an expression based on the given terms and column qualifier
prefix.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
evaluate(EvaluationContext context)
Returns a "truth" value for the expression using a specific evaluation
context to locate or recognize a
given row key field within the context of the expression. |
getLiteral, getOperator, getProperty, getPropertyPath, toStringaccept, createPropertyPath, getLeft, getRight, setLeft, setRightclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetLiteral, getOperator, getProperty, getPropertyPathaccept, getLeft, getRightprotected Endpoint endpoint
protected GraphRecognizerSupport recognizer
public ExternalEdgeRecognizerRelationalBinaryExpr(org.plasma.query.model.Property property,
org.plasma.query.model.Literal literal,
org.plasma.query.model.RelationalOperator operator)
property - the "left" property termliteral - the "right" literal termoperator - the relational operatorLocalEdgeRecognizerContextpublic boolean evaluate(EvaluationContext context)
context to locate or recognize a
given row key field within the context of the expression.
For external edges, we have only the row key fields to evaluate and the predicate tree may contain predicates with properties which target fields anywhere in the target graph including properties outside the row key. So for external edge evaluators always return true when a value is not found, but indicate the row evaluation was not complete so downstream actions can be taken.
evaluate in interface Exprevaluate in class DefaultRelationalBinaryExprcontext - context to locate or
recognize a given row key field within the context of the
expression.LocalEdgeRecognizerContextCopyright © 2021. All Rights Reserved.