asterixdb-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Abdullah Alamoudi (JIRA)" <j...@apache.org>
Subject [jira] [Created] (ASTERIXDB-1416) IRecordReader interface needs revision
Date Wed, 27 Apr 2016 20:20:13 GMT
Abdullah Alamoudi created ASTERIXDB-1416:
--------------------------------------------

             Summary: IRecordReader interface needs revision
                 Key: ASTERIXDB-1416
                 URL: https://issues.apache.org/jira/browse/ASTERIXDB-1416
             Project: Apache AsterixDB
          Issue Type: Bug
          Components: AsterixDB
            Reporter: Abdullah Alamoudi
            Assignee: Abdullah Alamoudi


The IRecordReader interface have an iterator like methods:

1. hasNext()
2. next()

However, it is possible for hasNext() to return true and next() to return null, meaning that
it has next but next is not ready. This is confusing and should be fixed. Particularly, the
right thing would be for hasNext() only to return true when it has something immediately ready.
If it doesn't have something ready, it should block.

An alternative would be to re-design the interface.



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

Mime
View raw message