public class SqlResultProcessor extends java.lang.Object implements QueryResultProcessor
QueryResultProcessor which extracts individual fields from a row in
Drill's Record Batch into the corresponding fields of an OJAI Document.| Constructor and Description |
|---|
SqlResultProcessor(boolean excludeId) |
| Modifier and Type | Method and Description |
|---|---|
org.ojai.Document |
extractFirst(org.apache.drill.exec.record.RecordBatchLoader loader)
Process the new record batch and return the first result from this result batch.
|
org.ojai.Document |
extractNext(int rowNum)
Return the ith record from the current record batch.
|
public org.ojai.Document extractFirst(org.apache.drill.exec.record.RecordBatchLoader loader)
QueryResultProcessorextractFirst in interface QueryResultProcessorpublic org.ojai.Document extractNext(int rowNum)
QueryResultProcessorextractNext in interface QueryResultProcessor