GitHub user carlosrmng opened a pull request:
https://github.com/apache/gora/pull/132
Gora-444 : Add #size() to Result API
This PR adds #size() to Result API, it implements size() for existing
backends. The complete disscusion can be found in
[GORA-444](https://issues.apache.org/jira/browse/GORA-444).
Some issues with this PR:
-new tests are need.
-Backends: Accumulo, Avro, HBase, don't support size() functions, so an
approach using batchSize was used instead.
Code review welcome, thanks
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/carlosrmng/gora GORA-444
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/gora/pull/132.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 #132
----
commit 76cc89cddd2cbda42518de8e304e92e3f341a744
Author: Carlos Muñoz <carlosrmng@...>
Date: 2018-03-22T05:06:56Z
Add #size() to Result API: Aerospike, Cassandra, CouchDB, DynamoDB,
MongoDB, OrientDB, JCache, Solr, Mock, Mem.
commit 0ee48ab3d96445a280852a1fd04206efb883baa9
Author: Carlos Muñoz <carlosrmng@...>
Date: 2018-03-22T05:59:02Z
Add #size() to Result API: Accumulo, Avro, HBase
Set batch size using query.limit
----
---