Class GafferPredicateFactory
- java.lang.Object
-
- uk.gov.gchq.gaffer.tinkerpop.process.traversal.util.GafferPredicateFactory
-
public final class GafferPredicateFactory extends Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Predicate<?>
convertGremlinPredicate(org.apache.tinkerpop.gremlin.process.traversal.P<?> p)
Converts a Gremlin Predicate into to a KoryphePredicate that can be used to filter elements in a GafferView
.
-
-
-
Method Detail
-
convertGremlinPredicate
public static Predicate<?> convertGremlinPredicate(org.apache.tinkerpop.gremlin.process.traversal.P<?> p)
Converts a Gremlin Predicate into to a KoryphePredicate that can be used to filter elements in a GafferView
. Also converts TSTV Strings toTypeSubTypeValue
objects to allow querying of TSTV properties via Gremlin.- Parameters:
p
- the Gremlin predicate to convert- Returns:
- the equivalent
KoryphePredicate
- See Also:
GafferCustomTypeFactory.parseAsCustomTypeIfValid(Object)
-
-