public class UnpivotMapsRecordBatch extends AbstractSingleRecordBatch<UnpivotMaps>
"schema" : BIGINT - Schema number. For each schema change this number is incremented.
"computed" : BIGINT - What time is it computed?
"columns" : MAP - Column names
"region_id" : VARCHAR
"sales_city" : VARCHAR
"cnt" : VARCHAR
"statscount" : MAP
"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
"region_id" : BIGINT - nonnullstatcount(region_id)
"sales_city" : BIGINT - nonnullstatcount(sales_city)
"cnt" : BIGINT - nonnullstatcount(cnt)
.... another map for next stats function ....
Schema of output: "schema" : BIGINT - Schema number. For each schema change this number is incremented. "computed" : BIGINT - What time is this computed? "column" : column name "statscount" : BIGINT "nonnullstatcount" : BIGINT .... one column for each map type ...
AbstractRecordBatch.BatchStateRecordBatch.IterOutcomeincomingcallBackbatchStatsContext, container, context, oContext, popConfig, state, stats, unionTypeEnabledMAX_BATCH_ROW_COUNT| Constructor and Description |
|---|
UnpivotMapsRecordBatch(UnpivotMaps pop,
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 UnpivotMapsRecordBatch(UnpivotMaps pop, RecordBatch incoming, FragmentContext context) throws OutOfMemoryException
OutOfMemoryExceptionpublic int getRecordCount()
VectorAccessiblepublic RecordBatch.IterOutcome innerNext()
innerNext in class AbstractUnaryRecordBatch<UnpivotMaps>public VectorContainer getOutgoingContainer()
getOutgoingContainer in interface RecordBatchgetOutgoingContainer in class AbstractRecordBatch<UnpivotMaps>protected RecordBatch.IterOutcome doWork()
doWork in class AbstractUnaryRecordBatch<UnpivotMaps>protected boolean setupNewSchema()
setupNewSchema in class AbstractUnaryRecordBatch<UnpivotMaps>public void dump()
RecordBatchCopyright © 2021 The Apache Software Foundation. All rights reserved.