Uploaded image for project: 'S2Graph'
  1. S2Graph
  2. S2GRAPH-151 Provide global index.
  3. S2GRAPH-152

Add IndexType on Management's createIndex

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Done
    • Major
    • Resolution: Done
    • 0.2.0
    • 0.2.0
    • None
    • None

    Description

      For global index described on S2GRAPH-151, it is necessary to change Index Management API on Graph Client.

      For reference following is APIs for create ServiceColumn/Label with Index through Management API.

      Management.createServiceColumn(
      		serviceName = serviceName, columnName = "person", columnType = "integer",
          props = Seq(
          	Prop("name", "-", "string"), 
          	Prop("age", "0", "integer"), 
          	Prop("location", "-", "string")
          )
      )
      
      management.createLabel(
      		label = "bought", 
          srcServiceName = serviceName, srcColumnName = "person", srcColumnType = "integer", 
          tgtServiceName = serviceName, tgtColumnName = "product", tgtColumnType = "integer", idDirected = true, 
          serviceName = serviceName, 
          indices = Seq(
          	Index("PK", Seq("amount", "created_at")
          ), 
          props = Seq(
          	Prop("amount", "0.0", "double"), 
          	Prop("created_at", "2000-01-01", "string")
          ), 
          consistencyLevel = "strong"
      )
      

      I suggest to add following new method to build global index.

      management.buildGlobalVertexIndex("search", Seq("name", "age"))
      management.buildGlobalEdgeIndex("search", Seq("x", "y"))
      

      Attachments

        Issue Links

          Activity

            People

              steamshon Do Yung Yoon
              steamshon Do Yung Yoon
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - 168h
                  168h
                  Remaining:
                  Remaining Estimate - 168h
                  168h
                  Logged:
                  Time Spent - Not Specified
                  Not Specified