processing/src/main/java/org/apache/carbondata/processing/store/writer/v3/CarbonFactDataWriterImplV3.java
/**
   * Below method will be used to fill the block info details
   *
   * @param numberOfRows       number of rows in file
   * @param carbonDataFileName The name of carbonData file
   * @param currentPosition    current offset
   */
Below method will be used to fill the block info details
@param numberOfRows       number of rows in file
@param carbonDataFileName The name of carbonData file
@param currentPosition    current offset
Below method will be used to fill the block info details @param numberOfRows number of rows in file @param carbonDataFileName The name of carbonData file @param currentPosition current offset
@Override
  protected void fillBlockIndexInfoDetails(long numberOfRows, String carbonDataFileName,
      long currentPosition) {
    int i = 0;
    DataFileFooterConverterV3 converterV3 = new DataFileFooterConverterV3();
    for (org.apache.carbondata.format.BlockletIndex index : blockletIndex) {
      BlockletInfo3 blockletInfo3 = blockletMetadata.get(i);
      BlockletInfo blockletInfo = converterV3.getBlockletInfo(blockletInfo3,
          model.getSegmentProperties().getDimensions().size());
      BlockletBTreeIndex bTreeIndex = new BlockletBTreeIndex(index.b_tree_index.getStart_key(),
          index.b_tree_index.getEnd_key());
      BlockletMinMaxIndex minMaxIndex = new BlockletMinMaxIndex();
      minMaxIndex.setMinValues(toByteArray(index.getMin_max_index().getMin_values()));
      minMaxIndex.setMaxValues(toByteArray(index.getMin_max_index().getMax_values()));
      org.apache.carbondata.core.metadata.blocklet.index.BlockletIndex bIndex =
          new org.apache.carbondata.core.metadata.blocklet.index.BlockletIndex(bTreeIndex,
              minMaxIndex);
      BlockIndexInfo biInfo =
          new BlockIndexInfo(numberOfRows, carbonDataFileName, currentPosition, bIndex,
              blockletInfo);
      blockIndexInfoList.add(biInfo);
      i++;
    }
  }
@ Override protected void fillBlockIndexInfoDetails ( long numberOfRows , String carbonDataFileName , long currentPosition ) { int i = 0 ; DataFileFooterConverterV3 converterV3 = new DataFileFooterConverterV3 ( ) ; for ( org . apache . carbondata . format . BlockletIndex index : blockletIndex ) { BlockletInfo3 blockletInfo3 = blockletMetadata . get ( i ) ; BlockletInfo blockletInfo = converterV3 . getBlockletInfo ( blockletInfo3 , model . getSegmentProperties ( ) . getDimensions ( ) . size ( ) ) ; BlockletBTreeIndex bTreeIndex = new BlockletBTreeIndex ( index . b_tree_index . getStart_key ( ) , index . b_tree_index . getEnd_key ( ) ) ; BlockletMinMaxIndex minMaxIndex = new BlockletMinMaxIndex ( ) ; minMaxIndex . setMinValues ( toByteArray ( index . getMin_max_index ( ) . getMin_values ( ) ) ) ; minMaxIndex . setMaxValues ( toByteArray ( index . getMin_max_index ( ) . getMax_values ( ) ) ) ; org . apache . carbondata . core . metadata . blocklet . index . BlockletIndex bIndex = new org . apache . carbondata . core . metadata . blocklet . index . BlockletIndex ( bTreeIndex , minMaxIndex ) ; BlockIndexInfo biInfo = new BlockIndexInfo ( numberOfRows , carbonDataFileName , currentPosition , bIndex , blockletInfo ) ; blockIndexInfoList . add ( biInfo ) ; i ++ ; } }
Below method will be used to fill the block info details
 @param numberOfRows       number of rows in file
 @param carbonDataFileName The name of carbonData file
 @param currentPosition    current offset
Below method will be used to fill the block info details @param numberOfRows number of rows in file @param carbonDataFileName The name of carbonData file @param currentPosition current offset