Class GremlinQueryPreProcessor


  • public final class GremlinQueryPreProcessor
    extends Object
    This class is a Utility class to general gremlin query equivalents of Contraints being passed via AWS Lambda Handler
    • Method Detail

      • generateGremlinQueryPart

        public static org.apache.tinkerpop.gremlin.process.traversal.dsl.graph.GraphTraversal<org.apache.tinkerpop.gremlin.structure.Element,​org.apache.tinkerpop.gremlin.structure.Element> generateGremlinQueryPart​(org.apache.tinkerpop.gremlin.process.traversal.dsl.graph.GraphTraversal<org.apache.tinkerpop.gremlin.structure.Element,​org.apache.tinkerpop.gremlin.structure.Element> traversal,
                                                                                                                                                                                                                            String key,
                                                                                                                                                                                                                            String value,
                                                                                                                                                                                                                            org.apache.arrow.vector.types.pojo.ArrowType type,
                                                                                                                                                                                                                            Marker.Bound bound,
                                                                                                                                                                                                                            GremlinQueryPreProcessor.Operator operator)
        Pick and Process pre-defined templates based on parameters to generate gremlin query
        Parameters:
        traversal - Gremlin Traversal
        key - Query Condition Key
        value - Query Condition Value
        bound - Query Condition Value Range
        operator - Query Operator representing conditional operators e.g < , <=, >, >= , =
        Returns:
        A Gremlin Query Part equivalent to Contraint.