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

Renato Javier Marroquín Mogrovejo commented on GORA-444:
--------------------------------------------------------

Hey guys,

So it is true that not all of the systems provide this in the same way, but 
there might be ways on how to get this. For example Accumulo and HBase have a 
way to get/set the batchSize of the elements fetch.  However, I don't think we 
have set this values, maybe we should set them, and keep track of how many we 
are actually reading on the getProgress method.


[https://accumulo.apache.org/1.7/apidocs/org/apache/accumulo/core/client/Scanner.html#setBatchSize-int-]

https://hbase.apache.org/apidocs/org/apache/hadoop/hbase/client/Scan.html#getBatch--

> Add #size() to Result API
> -------------------------
>
>                 Key: GORA-444
>                 URL: https://issues.apache.org/jira/browse/GORA-444
>             Project: Apache Gora
>          Issue Type: New Feature
>          Components: gora-core
>            Reporter: Lewis John McGibbney
>            Priority: Minor
>             Fix For: 0.9
>
>
> Right now we iterate through results by doing 
> {code}
> while (results.next()) {
>    ...
> }
> {code}
> It is a pain to always require a counter of sorts and would be much more 
> intuitive to provide a simple #size() method.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to