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)

Reply via email to