gora-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Renato Javier Marroquín Mogrovejo (JIRA) <j...@apache.org>
Subject [jira] [Commented] (GORA-444) Add #size() to Result API
Date Thu, 15 Mar 2018 10:36:00 GMT

    [ 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.



> 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

View raw message