public class StatisticsWriterRecordBatch extends AbstractRecordBatch<Writer>
AbstractRecordBatch.BatchState
RecordBatch.IterOutcome
batchStatsContext, container, context, oContext, popConfig, state, stats, unionTypeEnabled
MAX_BATCH_ROW_COUNT
Constructor and Description |
---|
StatisticsWriterRecordBatch(Writer writer,
RecordBatch incoming,
FragmentContext context,
StatisticsRecordWriter recordWriter) |
Modifier and Type | Method and Description |
---|---|
protected void |
cancelIncoming() |
void |
close() |
void |
dump()
Perform dump of this batch's state to logs.
|
int |
getRecordCount()
Get the number of records.
|
BatchSchema |
getSchema()
Gets the current schema of this record batch.
|
RecordBatch.IterOutcome |
innerNext() |
protected void |
setupNewSchema() |
buildSchema, cancel, checkContinue, getContainer, getContext, getOutgoingContainer, getPopConfig, getRecordBatchStatsContext, getSelectionVector2, 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 StatisticsWriterRecordBatch(Writer writer, RecordBatch incoming, FragmentContext context, StatisticsRecordWriter recordWriter) throws OutOfMemoryException
OutOfMemoryException
public int getRecordCount()
VectorAccessible
protected void cancelIncoming()
cancelIncoming
in class AbstractRecordBatch<Writer>
public BatchSchema getSchema()
RecordBatch
May be called only when the most recent call to RecordBatch.next()
, if any,
returned RecordBatch.IterOutcome.OK_NEW_SCHEMA
or RecordBatch.IterOutcome.OK
.
The schema changes when and only when RecordBatch.next()
returns
RecordBatch.IterOutcome.OK_NEW_SCHEMA
.
getSchema
in interface RecordBatch
getSchema
in interface VectorAccessible
getSchema
in class AbstractRecordBatch<Writer>
public void dump()
RecordBatch
public RecordBatch.IterOutcome innerNext()
innerNext
in class AbstractRecordBatch<Writer>
protected void setupNewSchema()
public void close()
close
in interface AutoCloseable
close
in class AbstractRecordBatch<Writer>
Copyright © 1970 The Apache Software Foundation. All rights reserved.