public class StatisticsMergeBatch extends AbstractSingleRecordBatch<StatisticsMerge>
"columns" : MAP - Column names
"region_id" : VARCHAR
"sales_city" : VARCHAR
"cnt" : VARCHAR
"statscount" : MAP - Number of entries (rows)
"region_id" : BIGINT - statscount(region_id)
in incoming batch
"sales_city" : BIGINT - statscount(sales_city)
"cnt" : BIGINT - statscount(cnt)
"nonnullstatcount" : MAP - Number of non-null entries (rows)
"region_id" : BIGINT - nonnullstatcount(region_id)
"sales_city" : BIGINT - nonnullstatcount(sales_city)
"cnt" : BIGINT - nonnullstatcount(cnt)
.... another map for next stats function ....
Schema of outgoing batch:
"schema" : BIGINT - Schema number. For each schema change this number is incremented.
"computed" : DATE - What time is it computed?
"columns" : MAP - Column names
"region_id" : VARCHAR
"sales_city" : VARCHAR
"cnt" : VARCHAR
"statscount" : MAP - Number of entries (rows)
"region_id" : BIGINT - statscount(region_id) - aggregation over all values of region_id
in incoming batch
"sales_city" : BIGINT - statscount(sales_city)
"cnt" : BIGINT - statscount(cnt)
"nonnullstatcount" : MAP - Number of non-null entries (rows)
"region_id" : BIGINT - nonnullstatcount(region_id)
"sales_city" : BIGINT - nonnullstatcount(sales_city)
"cnt" : BIGINT - nonnullstatcount(cnt)
.... another map for next stats function ....
AbstractRecordBatch.BatchStateRecordBatch.IterOutcomeincomingcallBackbatchStatsContext, container, context, oContext, popConfig, state, stats, unionTypeEnabledMAX_BATCH_ROW_COUNT| Constructor and Description |
|---|
StatisticsMergeBatch(StatisticsMerge popConfig,
RecordBatch incoming,
FragmentContext context) |
| Modifier and Type | Method and Description |
|---|---|
protected RecordBatch.IterOutcome |
doWork() |
void |
dump()
Perform dump of this batch's state to logs.
|
VectorContainer |
getOutgoingContainer() |
int |
getRecordCount()
Get the number of records.
|
RecordBatch.IterOutcome |
innerNext() |
protected boolean |
setupNewSchema() |
getFinalOutcome, getIncomingcancelIncoming, getLastKnownOutcome, handleNullInput, setLastKnownOutcomebuildSchema, cancel, checkContinue, close, getContainer, getContext, getPopConfig, getRecordBatchStatsContext, getSchema, getSelectionVector2, getSelectionVector4, getValueAccessorById, getValueVectorId, getWritableBatch, isRecordBatchStatsLoggingEnabled, iterator, next, next, next, schemaChangeException, schemaChangeExceptionclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEach, spliteratorpublic StatisticsMergeBatch(StatisticsMerge popConfig, RecordBatch incoming, FragmentContext context) throws OutOfMemoryException
OutOfMemoryExceptionprotected boolean setupNewSchema()
setupNewSchema in class AbstractUnaryRecordBatch<StatisticsMerge>protected RecordBatch.IterOutcome doWork()
doWork in class AbstractUnaryRecordBatch<StatisticsMerge>public VectorContainer getOutgoingContainer()
getOutgoingContainer in interface RecordBatchgetOutgoingContainer in class AbstractRecordBatch<StatisticsMerge>public void dump()
RecordBatchpublic RecordBatch.IterOutcome innerNext()
innerNext in class AbstractUnaryRecordBatch<StatisticsMerge>public int getRecordCount()
VectorAccessibleCopyright © 2021 The Apache Software Foundation. All rights reserved.