You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@usergrid.apache.org by "Ed Anuff (JIRA)" <ji...@apache.org> on 2014/04/10 20:06:17 UTC

[jira] [Commented] (USERGRID-121) Implement Graph Edge queries in Core Persistence

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

Ed Anuff commented on USERGRID-121:
-----------------------------------

I assume this means the interface in core persistence, not the existing entity manager?  All queries in Usergrid are in the context of an entity and so-called "root" queries are simply in the context of the application entity.  I assume Core Persistence works the same way.  Please note that the original entity manager provides for both collections and connections to be branched off of any entity, the distinction being that a collection is defined by the schema whereas connections are arbitrary and defined at runtime.

> Implement Graph Edge queries in Core Persistence
> ------------------------------------------------
>
>                 Key: USERGRID-121
>                 URL: https://issues.apache.org/jira/browse/USERGRID-121
>             Project: Usergrid
>          Issue Type: Story
>          Components: Stack
>            Reporter: David Johnson
>            Assignee: David Johnson
>
> Core Persistence must be able to support the same connection-based queries that are currently supported in Usergrid.
> For example...
> Example Entities
>      Entity Bob 
>      Entity TacoStand 
>           location
>           foodType
>      Entity FishTruck
>           location
>           foodType
> Example Edges
>      Edge Bob Likes TacoStand
>      Edge Bob Likes FishTruck
> Example Queries
>      GET /org/app/users/bob/likes?q=select * where location within d of x,y
>      GET /org/app/users/bob/likes?q=select * where foodType=‘taco'
> That task is:
> 1. design a Java interface or changes to our existing Query Index interfaces that allows a caller to index a new edge and implement that interface.
> 2. design a Java interface, or changes to our existing Query Index module interfaces that allows a caller to query starting from a specific Entity connection context (e.g. "Bob likes...")



--
This message was sent by Atlassian JIRA
(v6.2#6252)