core/src/main/java/org/apache/carbondata/core/indexstore/blockletindex/BlockletDataMap.java
/**
   * Creates the schema to store summary information or the information which can be stored only
   * once per datamap. It stores datamap level max/min of each column and partition information of
   * datamap
   * @param segmentProperties
   * @param partitions
   * @throws MemoryException
   */
Creates the schema to store summary information or the information which can be stored only
once per datamap. It stores datamap level max/min of each column and partition information of
datamap
@param segmentProperties
@param partitions
@throws MemoryException
Creates the schema to store summary information or the information which can be stored only once per datamap . It stores datamap level max / min of each column and partition information of datamap @param segmentProperties @param partitions @throws MemoryException
private void createSummarySchema(SegmentProperties segmentProperties, List<String> partitions,
      byte[] schemaBinary)
      throws MemoryException {
    List<CarbonRowSchema> taskMinMaxSchemas = new ArrayList<>();
    getMinMaxSchema(segmentProperties, taskMinMaxSchemas);
    taskMinMaxSchemas.add(
        new CarbonRowSchema.FixedCarbonRowSchema(DataTypes.BYTE_ARRAY, schemaBinary.length));
    if (partitions != null && partitions.size() > 0) {
      CarbonRowSchema[] mapSchemas = new CarbonRowSchema[partitions.size()];
      for (int i = 0; i < mapSchemas.length; i++) {
        mapSchemas[i] = new CarbonRowSchema.VariableCarbonRowSchema(DataTypes.BYTE_ARRAY);
      }
      CarbonRowSchema mapSchema =
          new CarbonRowSchema.StructCarbonRowSchema(DataTypes.createDefaultStructType(),
              mapSchemas);
      taskMinMaxSchemas.add(mapSchema);
    }
    unsafeMemorySummaryDMStore = new UnsafeMemoryDMStore(
        taskMinMaxSchemas.toArray(new CarbonRowSchema[taskMinMaxSchemas.size()]));
  }
private void createSummarySchema ( SegmentProperties segmentProperties , List < String > partitions , byte [ ] schemaBinary ) throws MemoryException { List < CarbonRowSchema > taskMinMaxSchemas = new ArrayList < > ( ) ; getMinMaxSchema ( segmentProperties , taskMinMaxSchemas ) ; taskMinMaxSchemas . add ( new CarbonRowSchema . FixedCarbonRowSchema ( DataTypes . BYTE_ARRAY , schemaBinary . length ) ) ; if ( partitions != null && partitions . size ( ) > 0 ) { CarbonRowSchema [ ] mapSchemas = new CarbonRowSchema [ partitions . size ( ) ] ; for ( int i = 0 ; i < mapSchemas . length ; i ++ ) { mapSchemas [ i ] = new CarbonRowSchema . VariableCarbonRowSchema ( DataTypes . BYTE_ARRAY ) ; } CarbonRowSchema mapSchema = new CarbonRowSchema . StructCarbonRowSchema ( DataTypes . createDefaultStructType ( ) , mapSchemas ) ; taskMinMaxSchemas . add ( mapSchema ) ; } unsafeMemorySummaryDMStore = new UnsafeMemoryDMStore ( taskMinMaxSchemas . toArray ( new CarbonRowSchema [ taskMinMaxSchemas . size ( ) ] ) ) ; }
Creates the schema to store summary information or the information which can be stored only
 once per datamap.
Creates the schema to store summary information or the information which can be stored only once per datamap .
// for storing column schema