Class StatisticsWriterRecordBatch
java.lang.Object
org.apache.drill.exec.record.AbstractRecordBatch<Writer>
org.apache.drill.exec.physical.impl.StatisticsWriterRecordBatch
- All Implemented Interfaces:
AutoCloseable,Iterable<VectorWrapper<?>>,CloseableRecordBatch,RecordBatch,VectorAccessible
-
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.AbstractRecordBatch
batchStatsContext, container, context, oContext, popConfig, state, stats, unionTypeEnabledFields inherited from interface org.apache.drill.exec.record.RecordBatch
MAX_BATCH_ROW_COUNT -
Constructor Summary
ConstructorsConstructorDescriptionStatisticsWriterRecordBatch(Writer writer, RecordBatch incoming, FragmentContext context, StatisticsRecordWriter recordWriter) -
Method Summary
Methods inherited from class org.apache.drill.exec.record.AbstractRecordBatch
buildSchema, cancel, checkContinue, getContainer, getContext, getOutgoingContainer, getPopConfig, getRecordBatchStatsContext, 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
-
StatisticsWriterRecordBatch
public StatisticsWriterRecordBatch(Writer writer, RecordBatch incoming, FragmentContext context, StatisticsRecordWriter recordWriter) throws OutOfMemoryException - Throws:
OutOfMemoryException
-
-
Method Details
-
getRecordCount
public int getRecordCount()Description copied from interface:VectorAccessibleGet the number of records.- Returns:
- number of records
-
cancelIncoming
protected void cancelIncoming()- Specified by:
cancelIncomingin classAbstractRecordBatch<Writer>
-
getSchema
Description copied from interface:RecordBatchGets the current schema of this record batch.May be called only when the most recent call to
RecordBatch.next(), if any, returnedRecordBatch.IterOutcome.OK_NEW_SCHEMAorRecordBatch.IterOutcome.OK.The schema changes when and only when
RecordBatch.next()returnsRecordBatch.IterOutcome.OK_NEW_SCHEMA.- Specified by:
getSchemain interfaceRecordBatch- Specified by:
getSchemain interfaceVectorAccessible- Overrides:
getSchemain classAbstractRecordBatch<Writer>- Returns:
- schema of the current batch
-
dump
public void dump()Description copied from interface:RecordBatchPerform dump of this batch's state to logs. -
innerNext
- Specified by:
innerNextin classAbstractRecordBatch<Writer>
-
setupNewSchema
protected void setupNewSchema() -
close
public void close()- Specified by:
closein interfaceAutoCloseable- Overrides:
closein classAbstractRecordBatch<Writer>
-