public class DrillDocumentStream extends QueryDocumentStream
isUsed| Constructor and Description |
|---|
DrillDocumentStream(OjaiConnection ojaiConnection,
QueryContext queryContext) |
DrillDocumentStream(OjaiConnection ojaiConnection,
QueryContext queryContext,
SharedDrillSession sharedDrillSession) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
cancelQuery()
Perform whatever steps the derived class requires for canceling.
|
protected void |
closeDerived()
Perform whatever steps the derived class requires for closing.
|
QueryContext |
getQueryContext() |
org.apache.drill.exec.proto.UserBitShared.QueryId |
getQueryId()
Get the Drill QueryId for the query.
|
com.mapr.db.impl.OjaiQueryProperties.QueryPath |
getQueryPath()
Returns QueryPath.DIRECT.
|
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 docListener)
Overriding classes must call this at the end of their own
successful streamTo() in order to mark the abstract stream as used.
|
protected void |
submitQuery(org.ojai.DocumentListener docListener)
Submit the query for execution.
|
getIndexUsed, getQueryPlancheckState, close, documentReaders, isCanceled, isClosedpublic DrillDocumentStream(OjaiConnection ojaiConnection, QueryContext queryContext, SharedDrillSession sharedDrillSession)
public DrillDocumentStream(OjaiConnection ojaiConnection, QueryContext queryContext)
protected void cancelQuery()
AbstractDocumentStreamcancelQuery in class AbstractDocumentStreamprotected void submitQuery(org.ojai.DocumentListener docListener)
QueryDocumentStreamsubmitQuery in class QueryDocumentStreamdocListener - the listener to send the results toprotected void closeDerived()
AbstractDocumentStreamAbstractDocumentStream.close() method.closeDerived in class QueryDocumentStreampublic java.util.Iterator<org.ojai.Document> iterator()
public void streamTo(org.ojai.DocumentListener docListener)
AbstractDocumentStreamstreamTo in interface org.ojai.DocumentStreamstreamTo in class AbstractDocumentStreampublic com.mapr.db.impl.OjaiQueryProperties.QueryPath getQueryPath()
QueryDocumentStreamgetQueryPath in interface com.mapr.db.impl.OjaiQueryPropertiesgetQueryPath in class QueryDocumentStreampublic org.apache.drill.exec.proto.UserBitShared.QueryId getQueryId()
public QueryContext getQueryContext()
public void getQueryPlan(java.util.List<java.util.Map<java.lang.String,java.lang.Object>> planList)
getQueryPlan in interface com.mapr.db.impl.OjaiQueryPropertiesgetQueryPlan in class QueryDocumentStream