Class GafferPredicateFactory


  • public final class GafferPredicateFactory
    extends Object
    • 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 Gaffer View. Also converts TSTV Strings to TypeSubTypeValue 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)