Class GremlinQueryPreProcessor
- java.lang.Object
-
- com.amazonaws.athena.connectors.neptune.propertygraph.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
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
GremlinQueryPreProcessor.Operator
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description 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
-
-
-
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 Traversalkey
- Query Condition Keyvalue
- Query Condition Valuebound
- Query Condition Value Rangeoperator
- Query Operator representing conditional operators e.g < , <=, >, >= , =- Returns:
- A Gremlin Query Part equivalent to Contraint.
-
-