public class OjaiResultProcessor extends java.lang.Object implements QueryResultProcessor
QueryResultProcessor which decodes the RowcolCodec encoded
data in the `$$document` field from a row in Drill's Record Batch into OJAI Document.| Constructor and Description |
|---|
OjaiResultProcessor(QueryContext queryContext) |
| Modifier and Type | Method and Description |
|---|---|
org.ojai.Document |
extractFirst(org.apache.drill.exec.record.RecordBatchLoader loader)
Loads the schema and extract the first Document from the record batch.
|
org.ojai.Document |
extractNext(int rowNum)
Return the ith record from the current record batch.
|
public OjaiResultProcessor(QueryContext queryContext)
public org.ojai.Document extractFirst(org.apache.drill.exec.record.RecordBatchLoader loader)
extractFirst in interface QueryResultProcessorpublic org.ojai.Document extractNext(int rowNum)
QueryResultProcessorextractNext in interface QueryResultProcessor