Class GremlinParser

java.lang.Object
org.umlg.sqlg.sql.parse.GremlinParser

public class GremlinParser extends Object
Date: 2015/01/03 Time: 1:06 PM
  • Constructor Details

    • GremlinParser

      public GremlinParser(SqlgGraph sqlgGraph)
  • Method Details

    • parse

      public Set<SchemaTableTree> parse(ReplacedStepTree<?,?> replacedStepTree)
    • 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 table
      replacedStepTree - The original VertexSteps and HasSteps that were replaced
      Returns:
      a List of paths. Each path is itself a list of SchemaTables.