Class AndP<V>
java.lang.Object
org.apache.tinkerpop.gremlin.process.traversal.P<V>
org.apache.tinkerpop.gremlin.process.traversal.util.ConnectiveP<V>
org.apache.tinkerpop.gremlin.process.traversal.util.AndP<V>
- All Implemented Interfaces:
Serializable,Cloneable,Predicate<V>
- Author:
- Marko A. Rodriguez (http://markorodriguez.com)
- See Also:
-
Field Summary
Fields inherited from class org.apache.tinkerpop.gremlin.process.traversal.util.ConnectiveP
predicatesFields inherited from class org.apache.tinkerpop.gremlin.process.traversal.P
biPredicate, literals, variables -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()booleanReturnstrueif the most recent call toP.resolve(Traverser.Admin)produced no results for a scalar predicate, meaning there is no meaningful comparison value.negate()voidresolve(Traverser.Admin<?> traverser) Resolves child predicates with short-circuiting.toString()Methods inherited from class org.apache.tinkerpop.gremlin.process.traversal.util.ConnectiveP
equals, getGValues, getPredicates, hashCode, hasTraversal, isParameterized, negate, or, updateVariableMethods inherited from class org.apache.tinkerpop.gremlin.process.traversal.P
between, between, collectTraversals, eq, eq, eq, getBiPredicate, getChildTraversals, getPredicateName, getValue, gt, gt, gt, gte, gte, gte, inside, inside, lt, lt, lt, lte, lte, lte, neq, neq, neq, not, outside, outside, setValue, test, test, typeOf, typeOf, typeOf, within, within, within, within, within, without, without, without, without, without
-
Constructor Details
-
AndP
-
-
Method Details
-
and
-
negate
-
resolve
Resolves child predicates with short-circuiting. Because a conjunction fails as soon as any child predicate cannot be satisfied, resolution stops at the first child that resolves empty (i.e. a scalar predicate whose child traversal produced no comparison value). This avoids evaluating the remaining child traversals, which may be expensive. Collection predicates (within/without) never resolve empty (they resolve to an empty collection), so they do not trigger the short-circuit.- Overrides:
resolvein classConnectiveP<V>
-
isResolvedEmpty
public boolean isResolvedEmpty()Description copied from class:PReturnstrueif the most recent call toP.resolve(Traverser.Admin)produced no results for a scalar predicate, meaning there is no meaningful comparison value.- Overrides:
isResolvedEmptyin classP<V>
-
toString
-
clone
- Overrides:
clonein classConnectiveP<V>
-