Class MetadataHandlerBatch
java.lang.Object
org.apache.drill.exec.record.AbstractRecordBatch<MetadataHandlerPOP>
org.apache.drill.exec.record.AbstractUnaryRecordBatch<MetadataHandlerPOP>
org.apache.drill.exec.record.AbstractSingleRecordBatch<MetadataHandlerPOP>
org.apache.drill.exec.physical.impl.metadata.MetadataHandlerBatch
- All Implemented Interfaces:
AutoCloseable,Iterable<VectorWrapper<?>>,CloseableRecordBatch,RecordBatch,VectorAccessible
Responsible for handling metadata returned by incoming aggregate operators
and fetching required metadata form the Metastore.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.drill.exec.record.AbstractRecordBatch
AbstractRecordBatch.BatchStateNested classes/interfaces inherited from interface org.apache.drill.exec.record.RecordBatch
RecordBatch.IterOutcome -
Field Summary
Fields inherited from class org.apache.drill.exec.record.AbstractSingleRecordBatch
incomingFields inherited from class org.apache.drill.exec.record.AbstractUnaryRecordBatch
callBackFields inherited from class org.apache.drill.exec.record.AbstractRecordBatch
batchStatsContext, container, context, oContext, popConfig, state, stats, unionTypeEnabledFields inherited from interface org.apache.drill.exec.record.RecordBatch
MAX_BATCH_ROW_COUNT -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedMetadataHandlerBatch(MetadataHandlerPOP popConfig, FragmentContext context, RecordBatch incoming) -
Method Summary
Methods inherited from class org.apache.drill.exec.record.AbstractSingleRecordBatch
getFinalOutcome, getIncomingMethods inherited from class org.apache.drill.exec.record.AbstractUnaryRecordBatch
cancelIncoming, getLastKnownOutcome, handleNullInput, setLastKnownOutcomeMethods inherited from class org.apache.drill.exec.record.AbstractRecordBatch
buildSchema, cancel, checkContinue, close, getContainer, getContext, getOutgoingContainer, getPopConfig, getRecordBatchStatsContext, getSchema, getSelectionVector2, getSelectionVector4, getValueAccessorById, getValueVectorId, getWritableBatch, isRecordBatchStatsLoggingEnabled, iterator, next, next, next, schemaChangeException, schemaChangeExceptionMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
MetadataHandlerBatch
protected MetadataHandlerBatch(MetadataHandlerPOP popConfig, FragmentContext context, RecordBatch incoming) throws OutOfMemoryException - Throws:
OutOfMemoryException
-
-
Method Details
-
doWork
- Specified by:
doWorkin classAbstractUnaryRecordBatch<MetadataHandlerPOP>
-
innerNext
- Overrides:
innerNextin classAbstractUnaryRecordBatch<MetadataHandlerPOP>
-
setupNewSchema
protected boolean setupNewSchema()- Specified by:
setupNewSchemain classAbstractUnaryRecordBatch<MetadataHandlerPOP>
-
dump
public void dump()Description copied from interface:RecordBatchPerform dump of this batch's state to logs. -
getRecordCount
public int getRecordCount()Description copied from interface:VectorAccessibleGet the number of records.- Returns:
- number of records
-