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.BatchState
RecordBatch.IterOutcome
incoming
callBack
batchStatsContext, container, context, oContext, popConfig, state, stats, unionTypeEnabled
MAX_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, getIncoming
cancelIncoming, getLastKnownOutcome, handleNullInput, setLastKnownOutcome
buildSchema, cancel, checkContinue, close, getContainer, getContext, getPopConfig, getRecordBatchStatsContext, getSchema, 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 StatisticsMergeBatch(StatisticsMerge popConfig, RecordBatch incoming, FragmentContext context) throws OutOfMemoryException
OutOfMemoryException
protected boolean setupNewSchema()
setupNewSchema
in class AbstractUnaryRecordBatch<StatisticsMerge>
protected RecordBatch.IterOutcome doWork()
doWork
in class AbstractUnaryRecordBatch<StatisticsMerge>
public VectorContainer getOutgoingContainer()
getOutgoingContainer
in interface RecordBatch
getOutgoingContainer
in class AbstractRecordBatch<StatisticsMerge>
public void dump()
RecordBatch
public RecordBatch.IterOutcome innerNext()
innerNext
in class AbstractUnaryRecordBatch<StatisticsMerge>
public int getRecordCount()
VectorAccessible
Copyright © 1970 The Apache Software Foundation. All rights reserved.