You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tinkerpop.apache.org by "stephen mallette (JIRA)" <ji...@apache.org> on 2016/03/02 20:23:18 UTC

[jira] [Created] (TINKERPOP-1195) Client and ResultSet API changes

stephen mallette created TINKERPOP-1195:
-------------------------------------------

             Summary: Client and ResultSet API changes
                 Key: TINKERPOP-1195
                 URL: https://issues.apache.org/jira/browse/TINKERPOP-1195
             Project: TinkerPop
          Issue Type: Improvement
          Components: driver
    Affects Versions: 3.1.1-incubating
            Reporter: stephen mallette
            Assignee: stephen mallette
             Fix For: 3.2.0-incubating


Given discussion on a couple different threads:

https://pony-poc.apache.org/thread.html/Z424dvlo67k5np4
https://pony-poc.apache.org/thread.html/Z70ku3nckrkkgiy

the idea to introduce a breaking change to the {{Client}} and {{Result}} API seems to be established.  The basic changes involve:

1. Remove the return of {{CompletableFuture}} from a {{ResultSet}} thus allowing it to block for the {{some()}} and {{all()}} methods.
2. Change {{Client.submit()}} to return {{List<Result>}} rather than return a {{ResultSet}} - that method will basically block until all results are returned and then unwrap the {{List<Result>}} and return that.

Unfortunately, there doesn't appear to be a way to make it so that these changes are non-breaking.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)