Class RemovingRecordBatch
java.lang.Object
org.apache.drill.exec.record.AbstractRecordBatch<SelectionVectorRemover>
org.apache.drill.exec.record.AbstractUnaryRecordBatch<SelectionVectorRemover>
org.apache.drill.exec.record.AbstractSingleRecordBatch<SelectionVectorRemover>
org.apache.drill.exec.physical.impl.svremover.RemovingRecordBatch
- 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.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
ConstructorsConstructorDescriptionRemovingRecordBatch(SelectionVectorRemover popConfig, FragmentContext context, RecordBatch incoming) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()protected RecordBatch.IterOutcomedoWork()voiddump()Perform dump of this batch's state to logs.intGet the number of records.Gets a writable version of this batch.protected booleanMethods inherited from class org.apache.drill.exec.record.AbstractSingleRecordBatch
getFinalOutcome, getIncomingMethods inherited from class org.apache.drill.exec.record.AbstractUnaryRecordBatch
cancelIncoming, getLastKnownOutcome, handleNullInput, innerNext, setLastKnownOutcomeMethods inherited from class org.apache.drill.exec.record.AbstractRecordBatch
buildSchema, cancel, checkContinue, getContainer, getContext, getOutgoingContainer, getPopConfig, getRecordBatchStatsContext, getSchema, getSelectionVector2, getSelectionVector4, getValueAccessorById, getValueVectorId, 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
-
RemovingRecordBatch
public RemovingRecordBatch(SelectionVectorRemover popConfig, FragmentContext context, RecordBatch incoming) throws OutOfMemoryException - Throws:
OutOfMemoryException
-
-
Method Details
-
getRecordCount
public int getRecordCount()Description copied from interface:VectorAccessibleGet the number of records.- Returns:
- number of records
-
setupNewSchema
protected boolean setupNewSchema()- Specified by:
setupNewSchemain classAbstractUnaryRecordBatch<SelectionVectorRemover>
-
doWork
- Specified by:
doWorkin classAbstractUnaryRecordBatch<SelectionVectorRemover>
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Overrides:
closein classAbstractRecordBatch<SelectionVectorRemover>
-
getWritableBatch
Description copied from interface:RecordBatchGets a writable version of this batch. Takes over ownership of existing buffers.- Specified by:
getWritableBatchin interfaceRecordBatch- Overrides:
getWritableBatchin classAbstractRecordBatch<SelectionVectorRemover>
-
dump
public void dump()Description copied from interface:RecordBatchPerform dump of this batch's state to logs.
-