public class TraceRecordBatch extends AbstractSingleRecordBatch<Trace>
Purpose of this record batch is to dump the data associated with all the value vectors and selection vector to disk.
This record batch does not modify any data or schema, it simply consumes the incoming record batch's data, dump to disk and pass the same set of value vectors (and selection vectors) to its parent record batch.
AbstractRecordBatch.BatchStateRecordBatch.IterOutcomeincomingcallBackbatchStatsContext, container, context, oContext, popConfig, state, stats, unionTypeEnabledMAX_BATCH_ROW_COUNT| Constructor and Description |
|---|
TraceRecordBatch(Trace pop,
RecordBatch incoming,
FragmentContext context) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
protected RecordBatch.IterOutcome |
doWork()
Invoked for every record batch and it simply dumps the buffers
associated with all the value vectors in this record batch to a log file.
|
void |
dump()
Perform dump of this batch's state to logs.
|
int |
getRecordCount()
Get the number of records.
|
SelectionVector2 |
getSelectionVector2() |
protected boolean |
setupNewSchema() |
getFinalOutcome, getIncomingcancelIncoming, getLastKnownOutcome, handleNullInput, innerNext, setLastKnownOutcomebuildSchema, cancel, checkContinue, getContainer, getContext, getOutgoingContainer, getPopConfig, getRecordBatchStatsContext, getSchema, getSelectionVector4, getValueAccessorById, getValueVectorId, getWritableBatch, isRecordBatchStatsLoggingEnabled, iterator, next, next, next, schemaChangeException, schemaChangeExceptionclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEach, spliteratorpublic TraceRecordBatch(Trace pop, RecordBatch incoming, FragmentContext context) throws ExecutionSetupException
ExecutionSetupExceptionpublic int getRecordCount()
VectorAccessibleprotected RecordBatch.IterOutcome doWork()
doWork in class AbstractUnaryRecordBatch<Trace>protected boolean setupNewSchema()
setupNewSchema in class AbstractUnaryRecordBatch<Trace>public SelectionVector2 getSelectionVector2()
getSelectionVector2 in interface VectorAccessiblegetSelectionVector2 in class AbstractRecordBatch<Trace>public void close()
close in interface AutoCloseableclose in class AbstractRecordBatch<Trace>public void dump()
RecordBatchCopyright © 2021 The Apache Software Foundation. All rights reserved.