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.BatchState
RecordBatch.IterOutcome
incoming
callBack
batchStatsContext, container, context, oContext, popConfig, state, stats, unionTypeEnabled
MAX_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, 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 UnpivotMapsRecordBatch(UnpivotMaps pop, RecordBatch incoming, FragmentContext context) throws OutOfMemoryException
OutOfMemoryException
public int getRecordCount()
VectorAccessible
public RecordBatch.IterOutcome innerNext()
innerNext
in class AbstractUnaryRecordBatch<UnpivotMaps>
public VectorContainer getOutgoingContainer()
getOutgoingContainer
in interface RecordBatch
getOutgoingContainer
in class AbstractRecordBatch<UnpivotMaps>
protected RecordBatch.IterOutcome doWork()
doWork
in class AbstractUnaryRecordBatch<UnpivotMaps>
protected boolean setupNewSchema()
setupNewSchema
in class AbstractUnaryRecordBatch<UnpivotMaps>
public void dump()
RecordBatch
Copyright © 1970 The Apache Software Foundation. All rights reserved.