DOYUNG YOON created S2GRAPH-152:
-----------------------------------

             Summary: Add IndexType on Management's createIndex 
                 Key: S2GRAPH-152
                 URL: https://issues.apache.org/jira/browse/S2GRAPH-152
             Project: S2Graph
          Issue Type: Sub-task
    Affects Versions: 0.2.0
            Reporter: DOYUNG YOON
            Assignee: DOYUNG YOON
             Fix For: 0.2.0


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.

{noformat}
Management.createServiceColumn(
                serviceName = serviceName, columnName = "person", columnType = 
"integer",
    props = Seq(
        Prop("name", "-", "string"), 
        Prop("age", "0", "integer"), 
        Prop("location", "-", "string")
    )
)
{noformat}

{noformat}
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"
)
{noformat}

`Index` Class need to accept IndexType, which is either Mixed or Composite and 
pass through it into storage layer so on.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to