public class EmptyDocumentStream extends Object implements DocumentStream
Constructor and Description |
---|
EmptyDocumentStream() |
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. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEach, spliterator
public Iterator<Document> iterator()
DocumentStream
Document
.iterator
in interface Iterable<Document>
iterator
in interface DocumentStream
public void streamTo(DocumentListener listener)
DocumentStream
DocumentStream
to the specified
listener.streamTo
in interface DocumentStream
listener
- a DocumentListener
which is notified of
Document
s as they arrivepublic Iterable<DocumentReader> documentReaders()
DocumentStream
Iterable
over a set of DocumentReader
.documentReaders
in interface DocumentStream
public void close() throws OjaiException
DocumentStream
close
in interface AutoCloseable
close
in interface DocumentStream
OjaiException
Copyright © 2015–2018 MapR Technologies, Inc.. All rights reserved.