public class TinkerPopTextWrappingPredicate extends Object implements JanusGraphPredicate
JanusGraphPredicate that just wraps a TinkerPop Text predicate.
This enables JanusGraph to use TinkerPop Text predicates in places where it expects a
JanusGraphPredicate.| Constructor and Description |
|---|
TinkerPopTextWrappingPredicate(org.apache.tinkerpop.gremlin.process.traversal.Text wrappedPredicate) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
hasNegation()
Whether this predicate has a predicate that is semantically its negation.
|
boolean |
isQNF()
Returns true if this predicate is in query normal form.
|
boolean |
isValidCondition(Object condition)
Whether the given condition is a valid condition for this predicate.
|
boolean |
isValidValueType(Class<?> clazz)
Whether the given class is a valid data type for a value to which this predicate may be applied.
|
JanusGraphPredicate |
negate()
Returns the negation of this predicate if it exists, otherwise an exception is thrown.
|
boolean |
test(Object value,
Object condition) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitand, orpublic TinkerPopTextWrappingPredicate(org.apache.tinkerpop.gremlin.process.traversal.Text wrappedPredicate)
public boolean isValidCondition(Object condition)
JanusGraphPredicate
For instance, the Cmp.GREATER_THAN would require that the condition is comparable and not null.
isValidCondition in interface JanusGraphPredicatepublic boolean isValidValueType(Class<?> clazz)
JanusGraphPredicate
For instance, the Cmp.GREATER_THAN can only be applied to Comparable values.
isValidValueType in interface JanusGraphPredicatepublic boolean hasNegation()
JanusGraphPredicateCmp.EQUAL and Cmp.NOT_EQUAL are negatives of each other.hasNegation in interface JanusGraphPredicatepublic JanusGraphPredicate negate()
JanusGraphPredicateJanusGraphPredicate.hasNegation() first.negate in interface BiPredicate<Object,Object>negate in interface JanusGraphPredicatepublic boolean isQNF()
JanusGraphPredicateisQNF in interface JanusGraphPredicatepublic boolean test(Object value, Object condition)
test in interface BiPredicate<Object,Object>test in interface JanusGraphPredicateCopyright © 2012–2023. All rights reserved.