You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@s2graph.apache.org by "DOYUNG YOON (JIRA)" <ji...@apache.org> on 2017/07/28 21:26:00 UTC
[jira] [Updated] (S2GRAPH-152) Add buildGlobalIndex API on
Management
[ https://issues.apache.org/jira/browse/S2GRAPH-152?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
DOYUNG YOON updated S2GRAPH-152:
--------------------------------
Summary: Add buildGlobalIndex API on Management (was: Add IndexType on Management's createIndex )
> 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}
> `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)