@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, spliterator
void streamTo(@API.NonNullable DocumentListener listener)
DocumentStream
to the specified
listener.listener
- a DocumentListener
which is notified of
Document
s as they arriveStreamInUseException
- if an iterator is already retrieved from this
DocumentStream
Iterable<DocumentReader> documentReaders()
Iterable
over a set of DocumentReader
.StreamInUseException
- if an iterator is already retrieved from this
DocumentStream
void close() throws OjaiException
close
in interface AutoCloseable
OjaiException
Copyright © 2015–2018 MapR Technologies, Inc.. All rights reserved.