public class MaterializedDocumentStream
extends java.lang.Object
implements org.ojai.DocumentStream, com.mapr.db.impl.OjaiQueryProperties
| Constructor and Description |
|---|
MaterializedDocumentStream(org.ojai.Document document,
com.mapr.db.impl.OjaiQueryProperties.QueryPath queryPath,
java.lang.String indexUsed,
org.ojai.FieldPath... fieldPath)
Constructor for a single result.
|
MaterializedDocumentStream(com.mapr.db.impl.OjaiQueryProperties.QueryPath queryPath,
java.lang.String indexUsed)
Constructor for an empty result.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
java.lang.Iterable<org.ojai.DocumentReader> |
documentReaders() |
java.lang.String |
getIndexUsed() |
com.mapr.db.impl.OjaiQueryProperties.QueryPath |
getQueryPath() |
org.ojai.Document |
getQueryPlan() |
void |
getQueryPlan(java.util.List<java.util.Map<java.lang.String,java.lang.Object>> planList) |
java.util.Iterator<org.ojai.Document> |
iterator() |
void |
streamTo(org.ojai.DocumentListener documentListener) |
public MaterializedDocumentStream(org.ojai.Document document,
com.mapr.db.impl.OjaiQueryProperties.QueryPath queryPath,
java.lang.String indexUsed,
org.ojai.FieldPath... fieldPath)
document - single resultpublic MaterializedDocumentStream(com.mapr.db.impl.OjaiQueryProperties.QueryPath queryPath,
java.lang.String indexUsed)
public void close()
throws org.ojai.exceptions.OjaiException
close in interface java.lang.AutoCloseableclose in interface org.ojai.DocumentStreamorg.ojai.exceptions.OjaiExceptionpublic java.lang.Iterable<org.ojai.DocumentReader> documentReaders()
documentReaders in interface org.ojai.DocumentStreampublic java.util.Iterator<org.ojai.Document> iterator()
iterator in interface java.lang.Iterable<org.ojai.Document>iterator in interface org.ojai.DocumentStreampublic void streamTo(org.ojai.DocumentListener documentListener)
streamTo in interface org.ojai.DocumentStreampublic com.mapr.db.impl.OjaiQueryProperties.QueryPath getQueryPath()
getQueryPath in interface com.mapr.db.impl.OjaiQueryPropertiespublic java.lang.String getIndexUsed()
getIndexUsed in interface com.mapr.db.impl.OjaiQueryPropertiespublic void getQueryPlan(java.util.List<java.util.Map<java.lang.String,java.lang.Object>> planList)
getQueryPlan in interface com.mapr.db.impl.OjaiQueryPropertiespublic org.ojai.Document getQueryPlan()
getQueryPlan in interface org.ojai.DocumentStream