Package org.umlg.sqlg.sql.parse
Class GremlinParser
java.lang.Object
org.umlg.sqlg.sql.parse.GremlinParser
Date: 2015/01/03
Time: 1:06 PM
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionparse
(ReplacedStepTree<?, ?> replacedStepTree) parse
(SchemaTable schemaTable, ReplacedStepTree<?, ?> replacedStepTree, boolean isSqlgLocalStepBarrierChild) This is only called for vertex steps.
-
Constructor Details
-
GremlinParser
-
-
Method Details
-
parse
-
parse
public SchemaTableTree parse(SchemaTable schemaTable, ReplacedStepTree<?, ?> replacedStepTree, boolean isSqlgLocalStepBarrierChild) This is only called for vertex steps. Constructs the label paths from the given schemaTable to the leaf vertex labels for the gremlin query. For each path Sqlg will executeRegularQuery a sql query. The union of the queries is the result the gremlin query. The vertex labels can be calculated from the steps.- Parameters:
schemaTable
- The schema and tablereplacedStepTree
- The original VertexSteps and HasSteps that were replaced- Returns:
- a List of paths. Each path is itself a list of SchemaTables.
-