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>
public class TextP extends P<String>
PredefinedPredicatevalues that can be used asStringfilters.- Author:
- Daniel Kuppitz (http://gremlin.guru)
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class org.apache.tinkerpop.gremlin.process.traversal.P
biPredicate, literals, variables
-
-
Constructor Summary
Constructors Modifier Constructor Description TextP(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)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description TextPclone()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 TextPendingWith(String value)Determines if String does start with the given value.static TextPendingWith(org.apache.tinkerpop.gremlin.process.traversal.step.GValue<String> value)Determines if String does start with the given value.booleanequals(Object other)P<String>negate()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 TextPnotEndingWith(String value)Determines if String does not start with the given value.static TextPnotEndingWith(org.apache.tinkerpop.gremlin.process.traversal.step.GValue<String> value)Determines if String does not start with the given value.static TextPnotRegex(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).static TextPnotRegex(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).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 TextPregex(String value)Determines if String has a match with the given regex pattern.static TextPregex(org.apache.tinkerpop.gremlin.process.traversal.step.GValue<String> value)Determines 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.-
Methods inherited from class org.apache.tinkerpop.gremlin.process.traversal.P
and, between, between, eq, eq, getBiPredicate, getGValues, getPredicateName, getValue, gt, gt, gte, gte, hashCode, inside, inside, isParameterized, lt, lt, lte, lte, neq, neq, not, or, outside, outside, setValue, test, test, toString, typeOf, typeOf, typeOf, updateVariable, within, within, within, without, without, without
-
-
-
-
Constructor Detail
-
TextP
public TextP(PBiPredicate<String,String> biPredicate, String value)
-
TextP
public TextP(PBiPredicate<String,String> biPredicate, org.apache.tinkerpop.gremlin.process.traversal.step.GValue<String> value)
-
TextP
protected TextP(PBiPredicate<String,String> biPredicate, Collection<String> literals, Map<String,String> variables)
-
-
Method Detail
-
startingWith
public static TextP startingWith(String value)
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
-
notStartingWith
public static TextP notStartingWith(String value)
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
-
endingWith
public static TextP endingWith(String value)
Determines if String does start 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 start with the given value.- Since:
- 3.8.0
-
notEndingWith
public static TextP notEndingWith(String value)
Determines if String does not start 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 start with the given value.- Since:
- 3.8.0
-
containing
public static TextP containing(String value)
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
-
notContaining
public static TextP notContaining(String value)
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
-
regex
public static TextP regex(String value)
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
public static TextP regex(org.apache.tinkerpop.gremlin.process.traversal.step.GValue<String> value)
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
public static TextP notRegex(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.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
-
-