public interface DataStreamingEventIterator<E> extends AutoCloseable
DataStreamingEvents.
It throws checked exceptions and provides a close() method for
cleaning up resources managed by the iterator. These iterators should
always be closed after use.| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes any IO or other resources opened by the iterator.
|
boolean |
hasNext()
Returns
true if the iteration has more
DataStreamingEvents. |
DataStreamingEvent<E> |
next()
Returns the next
DataStreamingEvent in the iteration. |
boolean hasNext()
throws DataSourceReadException
true if the iteration has more
DataStreamingEvents. (In other words, returns true if next
would return a DataStreamingEvent rather than throwing an
exception.)DataStreamingEvents.DataSourceReadException - if an error occurred reading data from
the underlying data source.DataStreamingEvent<E> next() throws DataSourceReadException
DataStreamingEvent in the iteration.DataStreamingEvent in the iteration.DataSourceReadException - if an error occurred reading data from
the underlying data source.NoSuchElementException - if the iteration has no more
DataStreamingEvents.void close()
throws DataSourceReadException
close in interface AutoCloseableDataSourceReadException - if an error occurred reading data from
the underlying data source(s).Copyright © 2012–2016 Emory University. All rights reserved.