Class UnpivotMapsRecordBatch

All Implemented Interfaces:
AutoCloseable, Iterable<VectorWrapper<?>>, CloseableRecordBatch, RecordBatch, VectorAccessible

public class UnpivotMapsRecordBatch extends AbstractSingleRecordBatch<UnpivotMaps>
Unpivot maps. Assumptions are: 1) all child vectors in a map are of same type. 2) Each map contains the same number of fields and field names are also same (types could be different). Example input and output: Schema of input:
    "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 ...