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.BatchState
RecordBatch.IterOutcome
incoming
callBack
batchStatsContext, container, context, oContext, popConfig, state, stats, unionTypeEnabled
MAX_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, getIncoming
cancelIncoming, getLastKnownOutcome, handleNullInput, innerNext, setLastKnownOutcome
buildSchema, cancel, checkContinue, getContainer, getContext, getOutgoingContainer, getPopConfig, getRecordBatchStatsContext, getSchema, getSelectionVector4, getValueAccessorById, getValueVectorId, getWritableBatch, isRecordBatchStatsLoggingEnabled, iterator, next, next, next, schemaChangeException, schemaChangeException
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEach, spliterator
public TraceRecordBatch(Trace pop, RecordBatch incoming, FragmentContext context) throws ExecutionSetupException
ExecutionSetupException
public int getRecordCount()
VectorAccessible
protected RecordBatch.IterOutcome doWork()
doWork
in class AbstractUnaryRecordBatch<Trace>
protected boolean setupNewSchema()
setupNewSchema
in class AbstractUnaryRecordBatch<Trace>
public SelectionVector2 getSelectionVector2()
getSelectionVector2
in interface VectorAccessible
getSelectionVector2
in class AbstractRecordBatch<Trace>
public void close()
close
in interface AutoCloseable
close
in class AbstractRecordBatch<Trace>
public void dump()
RecordBatch
Copyright © 1970 The Apache Software Foundation. All rights reserved.