[ 
https://issues.apache.org/jira/browse/S2GRAPH-152?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16105735#comment-16105735
 ] 

ASF GitHub Bot commented on S2GRAPH-152:
----------------------------------------

GitHub user SteamShon opened a pull request:

    https://github.com/apache/incubator-s2graph/pull/114

    [S2GRAPH-152]: Add buildGlobalIndex API on Management

    - update schema file.
    - add `GlobalIndex` on models.
    - add `buildGlobalIndex` on Management.
    - rename `indexOption` into `LabelIndexMutateOption` on LabelIndex class.

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/SteamShon/incubator-s2graph S2GRAPH-152

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/incubator-s2graph/pull/114.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #114
    
----
commit 37254640c730945aa6e26a8853c8bc9ec56b30ea
Author: DO YUNG YOON <[email protected]>
Date:   2017-07-28T21:36:35Z

    add buildGlobalIndex on Management.

----


> Add buildGlobalIndex API on Management
> --------------------------------------
>
>                 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.buildGlobalIndex("search", Seq("name", "age"))
> {noformat}



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

Reply via email to