[ 
https://issues.apache.org/jira/browse/S2GRAPH-152?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Daewon Jeong updated S2GRAPH-152:
---------------------------------
    Summary: j  (was: Add buildGlobalIndex API on Management)

> j
> -
>
>                 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
>
>   Original Estimate: 168h
>  Remaining Estimate: 168h
>
> 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}
> I suggest to add following new method to build global index.
> {noformat}
> management.buildGlobalVertexIndex("search", Seq("name", "age"))
> management.buildGlobalEdgeIndex("search", Seq("x", "y"))
> {noformat}



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

Reply via email to