@API.Public @API.NotThreadSafe public interface DocumentStream extends AutoCloseable, Iterable<Document>
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Overridden to remove checked exception
|
Iterable<DocumentReader> |
documentReaders()
Returns an
Iterable over a set of DocumentReader. |
Iterator<Document> |
iterator()
Returns an iterator over a set of
Document. |
void |
streamTo(DocumentListener listener)
Streams all the documents in this
DocumentStream to the specified
listener. |
forEach, spliteratorvoid streamTo(@API.NonNullable DocumentListener listener)
DocumentStream to the specified
listener.listener - a DocumentListener which is notified of
Documents as they arriveStreamInUseException - if an iterator is already retrieved from this
DocumentStreamIterable<DocumentReader> documentReaders()
Iterable over a set of DocumentReader.StreamInUseException - if an iterator is already retrieved from this
DocumentStreamvoid close()
throws OjaiException
close in interface AutoCloseableOjaiExceptionCopyright © 2015–2019 MapR Technologies, Inc.. All rights reserved.