public class DBDocumentStream extends Object implements org.ojai.DocumentStream<DBDocument>
| Constructor and Description |
|---|
DBDocumentStream(com.mapr.fs.MapRResultScanner scanner,
boolean excludeId,
MapRDBTableImpl table,
Set<org.ojai.FieldPath> condPaths) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
Iterable<org.ojai.DocumentReader> |
documentReaders() |
Iterator<DBDocument> |
iterator() |
void |
streamTo(org.ojai.DocumentListener l) |
public DBDocumentStream(com.mapr.fs.MapRResultScanner scanner,
boolean excludeId,
MapRDBTableImpl table,
Set<org.ojai.FieldPath> condPaths)
public void streamTo(org.ojai.DocumentListener l)
streamTo in interface org.ojai.DocumentStream<DBDocument>public void close()
throws Exception
close in interface AutoCloseableExceptionpublic Iterator<DBDocument> iterator()
iterator in interface Iterable<DBDocument>iterator in interface org.ojai.DocumentStream<DBDocument>public Iterable<org.ojai.DocumentReader> documentReaders()
documentReaders in interface org.ojai.DocumentStream<DBDocument>Copyright © 2015 Mapr Technologies, Inc.. All rights reserved.