public interface OperatorExec
BatchAccesor provided via batchAccessor(). For
compatibility with other Drill operators, the set of vectors within
the batch must be the same from one batch to the next.| Modifier and Type | Method and Description |
|---|---|
BatchAccessor |
batchAccessor()
Provides a generic access mechanism to the batch's output data.
|
void |
bind(OperatorContext context)
Bind this operator to the context.
|
boolean |
buildSchema()
Retrieves the schema of the batch before the first actual batch
of data.
|
void |
cancel()
Alerts the operator that the query was cancelled.
|
void |
close()
Close the operator by releasing all resources that the operator
held.
|
boolean |
next()
Retrieves the next batch of data.
|
void bind(OperatorContext context)
context - operator contextBatchAccessor batchAccessor()
buildSchema() and next(). The batch itself
can be held in a standard VectorContainer, or in some
other structure more convenient for this operator.boolean buildSchema()
batchAccessor().boolean next()
batchAccessor() method.void cancel()
void close()
cancel() and after batchAccessor()
or next() returns false.
Note that there may be a significant delay between the last call to next() and the call to close() during which downstream operators do their work. A tidy operator will release resources immediately after EOF to avoid holding onto memory or other resources that could be used by downstream operators.
Copyright © 2021 The Apache Software Foundation. All rights reserved.