Class TextP
java.lang.Object
org.apache.tinkerpop.gremlin.process.traversal.P<String>
org.apache.tinkerpop.gremlin.process.traversal.TextP
- All Implemented Interfaces:
Serializable,Cloneable,Predicate<String>
Predefined
Predicate values that can be used as String filters.- Author:
- Daniel Kuppitz (http://gremlin.guru)
- See Also:
-
Field Summary
Fields inherited from class org.apache.tinkerpop.gremlin.process.traversal.P
biPredicate, literals, variables -
Constructor Summary
ConstructorsModifierConstructorDescriptionTextP(PBiPredicate<String, String> biPredicate, String value) protectedTextP(PBiPredicate<String, String> biPredicate, Collection<String> literals, Map<String, String> variables) TextP(PBiPredicate<String, String> biPredicate, org.apache.tinkerpop.gremlin.process.traversal.step.GValue<String> value) TextP(PBiPredicate<String, String> biPredicate, Traversal.Admin<?, ?> traversalValue) Constructs aTextPwith a child traversal whose result is resolved at runtime against the current traverser. -
Method Summary
Modifier and TypeMethodDescriptionclone()static TextPcontaining(String value) Determines if String does contain the given value.static TextPcontaining(org.apache.tinkerpop.gremlin.process.traversal.step.GValue<String> value) Determines if String does contain the given value.static TextPcontaining(Traversal<?, ?> traversalValue) Determines if String does contain the value resolved from a child traversal at runtime.static TextPendingWith(String value) Determines if String does end with the given value.static TextPendingWith(org.apache.tinkerpop.gremlin.process.traversal.step.GValue<String> value) Determines if String does end with the given value.static TextPendingWith(Traversal<?, ?> traversalValue) Determines if String does end with the value resolved from a child traversal at runtime.booleannegate()static TextPnotContaining(String value) Determines if String does not contain the given value.static TextPnotContaining(org.apache.tinkerpop.gremlin.process.traversal.step.GValue<String> value) Determines if String does not contain the given value.static TextPnotContaining(Traversal<?, ?> traversalValue) Determines if String does not contain the value resolved from a child traversal at runtime.static TextPnotEndingWith(String value) Determines if String does not end with the given value.static TextPnotEndingWith(org.apache.tinkerpop.gremlin.process.traversal.step.GValue<String> value) Determines if String does not end with the given value.static TextPnotEndingWith(Traversal<?, ?> traversalValue) Determines if String does not end with the value resolved from a child traversal at runtime.static TextPDetermines if String has no match with the given regex pattern and the reference implementation treats it as a simple negation of the evaluation of the pattern match ofregex(String).static TextPDetermines if String has no match with the given regex pattern and the reference implementation treats it as a simple negation of the evaluation of the pattern match ofregex(String).static TextPnotStartingWith(String value) Determines if String does not start with the given value.static TextPnotStartingWith(org.apache.tinkerpop.gremlin.process.traversal.step.GValue<String> value) Determines if String does not start with the given value.static TextPnotStartingWith(Traversal<?, ?> traversalValue) Determines if String does not start with the value resolved from a child traversal at runtime.static TextPDetermines if String has a match with the given regex pattern.static TextPDetermines if String has a match with the given regex pattern.static TextPstartingWith(String value) Determines if String does start with the given value.static TextPstartingWith(org.apache.tinkerpop.gremlin.process.traversal.step.GValue<String> value) Determines if String does start with the given value.static TextPstartingWith(Traversal<?, ?> traversalValue) Determines if String does start with the value resolved from a child traversal at runtime.Methods inherited from class org.apache.tinkerpop.gremlin.process.traversal.P
and, between, between, collectTraversals, eq, eq, eq, getBiPredicate, getChildTraversals, getGValues, getPredicateName, getValue, gt, gt, gt, gte, gte, gte, hashCode, hasTraversal, inside, inside, isParameterized, isResolvedEmpty, lt, lt, lt, lte, lte, lte, neq, neq, neq, not, or, outside, outside, resolve, setValue, test, test, toString, typeOf, typeOf, typeOf, updateVariable, within, within, within, within, within, without, without, without, without, without
-
Constructor Details
-
TextP
-
TextP
public TextP(PBiPredicate<String, String> biPredicate, org.apache.tinkerpop.gremlin.process.traversal.step.GValue<String> value) -
TextP
Constructs aTextPwith a child traversal whose result is resolved at runtime against the current traverser. The traversal must produce aStringresult.- Since:
- 4.0.0
-
TextP
protected TextP(PBiPredicate<String, String> biPredicate, Collection<String> literals, Map<String, String> variables)
-
-
Method Details
-
equals
-
negate
-
clone
-
startingWith
Determines if String does start with the given value.- Since:
- 3.4.0
-
startingWith
public static TextP startingWith(org.apache.tinkerpop.gremlin.process.traversal.step.GValue<String> value) Determines if String does start with the given value.- Since:
- 3.8.0
-
startingWith
Determines if String does start with the value resolved from a child traversal at runtime.- Since:
- 4.0.0
-
notStartingWith
Determines if String does not start with the given value.- Since:
- 3.4.0
-
notStartingWith
public static TextP notStartingWith(org.apache.tinkerpop.gremlin.process.traversal.step.GValue<String> value) Determines if String does not start with the given value.- Since:
- 3.8.0
-
notStartingWith
Determines if String does not start with the value resolved from a child traversal at runtime.- Since:
- 4.0.0
-
endingWith
Determines if String does end with the given value.- Since:
- 3.4.0
-
endingWith
public static TextP endingWith(org.apache.tinkerpop.gremlin.process.traversal.step.GValue<String> value) Determines if String does end with the given value.- Since:
- 3.8.0
-
endingWith
Determines if String does end with the value resolved from a child traversal at runtime.- Since:
- 4.0.0
-
notEndingWith
Determines if String does not end with the given value.- Since:
- 3.4.0
-
notEndingWith
public static TextP notEndingWith(org.apache.tinkerpop.gremlin.process.traversal.step.GValue<String> value) Determines if String does not end with the given value.- Since:
- 3.8.0
-
notEndingWith
Determines if String does not end with the value resolved from a child traversal at runtime.- Since:
- 4.0.0
-
containing
Determines if String does contain the given value.- Since:
- 3.4.0
-
containing
public static TextP containing(org.apache.tinkerpop.gremlin.process.traversal.step.GValue<String> value) Determines if String does contain the given value.- Since:
- 3.8.0
-
containing
Determines if String does contain the value resolved from a child traversal at runtime.- Since:
- 4.0.0
-
notContaining
Determines if String does not contain the given value.- Since:
- 3.4.0
-
notContaining
public static TextP notContaining(org.apache.tinkerpop.gremlin.process.traversal.step.GValue<String> value) Determines if String does not contain the given value.- Since:
- 3.8.0
-
notContaining
Determines if String does not contain the value resolved from a child traversal at runtime.- Since:
- 4.0.0
-
regex
Determines if String has a match with the given regex pattern. The TinkerPop reference implementation uses Java syntax for regex. The string is considered a match to the pattern if any substring matches the pattern. It is therefore important to use the appropriate boundary matchers (e.g. `$` for end of a line) to ensure a proper match.- Since:
- 3.6.0
-
regex
Determines if String has a match with the given regex pattern. The TinkerPop reference implementation uses Java syntax for regex. The string is considered a match to the pattern if any substring matches the pattern. It is therefore important to use the appropriate boundary matchers (e.g. `$` for end of a line) to ensure a proper match.- Since:
- 3.8.0
-
notRegex
Determines if String has no match with the given regex pattern and the reference implementation treats it as a simple negation of the evaluation of the pattern match ofregex(String).- Since:
- 3.6.0
-
notRegex
public static TextP notRegex(org.apache.tinkerpop.gremlin.process.traversal.step.GValue<String> value) Determines if String has no match with the given regex pattern and the reference implementation treats it as a simple negation of the evaluation of the pattern match ofregex(String).- Since:
- 3.8.0
-