parquet-column/src/main/java/org/apache/parquet/column/values/delta/DeltaBinaryPackingValuesReader.java
private void allocateValuesBuffer() {
    int totalMiniBlockCount = (int) Math.ceil((double) totalValueCount / config.miniBlockSizeInValues);
    //+ 1 because first value written to header is also stored in values buffer
    valuesBuffer = new long[totalMiniBlockCount * config.miniBlockSizeInValues + 1];
  }
private void allocateValuesBuffer() {
    int totalMiniBlockCount = (int) Math.ceil((double) totalValueCount / config.miniBlockSizeInValues);
    //+ 1 because first value written to header is also stored in values buffer
    valuesBuffer = new long[totalMiniBlockCount * config.miniBlockSizeInValues + 1];
  }
private void allocateValuesBuffer ( ) { int totalMiniBlockCount = ( int ) Math . ceil ( ( double ) totalValueCount / config . miniBlockSizeInValues ) ; //+ 1 because first value written to header is also stored in values buffer valuesBuffer = new long [ totalMiniBlockCount * config . miniBlockSizeInValues + 1 ] ; }
the value buffer is allocated so that the size of it is multiple of mini block
because when writing, data is flushed on a mini block basis
the value buffer is allocated so that the size of it is multiple of mini block because when writing data is flushed on a mini block basis