DOYUNG YOON created S2GRAPH-153:
-----------------------------------
Summary: Implement IndexProvider(for Mixed IndexType) class
Key: S2GRAPH-153
URL: https://issues.apache.org/jira/browse/S2GRAPH-153
Project: S2Graph
Issue Type: Sub-task
Affects Versions: 0.2.0
Reporter: DOYUNG YOON
Assignee: DOYUNG YOON
Fix For: 0.2.0
Currently, there is no global index layer in s2graph. One idea to implement
global index layer is using search engine and index Edge/Vertex based on their
property with Index Configuration.
In this task, IndexProvider trait, which can be extended by Lucene,
ElasticSearch, Solr, etc should be implemented and provide following methods on
Edge/Vertex.
- Indexing
{noformat}
- def mutateVertices(vertices: Seq[S2Vertex]): Seq[Boolean]
- def mutateEdges(edges: Seq[S2Edge]): Seq[Boolean]
{noformat}
- Querying
{noformat}
- def fetchEdgeIds(queryString: String): java.util.List[EdgeId]
- def fetchVertexIds(queryString: String): java.util.List[VertexId]
{noformat}
I can't decide if return type of Querying APIs should be changed into Future or
not so please give any help on this.
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)