core/src/main/java/org/apache/carbondata/core/scan/result/AbstractScannedResult.java
// free the memory for the last page chunk
free the memory for the last page chunk
free the memory for the last page chunk
private void freeDataChunkMemory() {
    for (int i = 0; i < dimensionDataChunks.length; i++) {
      if (pageCounter > 0 && dimensionDataChunks[i][pageCounter - 1] != null) {
        dimensionDataChunks[i][pageCounter - 1].freeMemory();
        dimensionDataChunks[i][pageCounter - 1] = null;
      }
    }
    for (int i = 0; i < measureDataChunks.length; i++) {
      if (pageCounter > 0 && measureDataChunks[i][pageCounter - 1] != null) {
        measureDataChunks[i][pageCounter - 1].freeMemory();
        measureDataChunks[i][pageCounter - 1] = null;
      }
    }
  }
private void freeDataChunkMemory ( ) { for ( int i = 0 ; i < dimensionDataChunks . length ; i ++ ) { if ( pageCounter > 0 && dimensionDataChunks [ i ] [ pageCounter - 1 ] != null ) { dimensionDataChunks [ i ] [ pageCounter - 1 ] . freeMemory ( ) ; dimensionDataChunks [ i ] [ pageCounter - 1 ] = null ; } } for ( int i = 0 ; i < measureDataChunks . length ; i ++ ) { if ( pageCounter > 0 && measureDataChunks [ i ] [ pageCounter - 1 ] != null ) { measureDataChunks [ i ] [ pageCounter - 1 ] . freeMemory ( ) ; measureDataChunks [ i ] [ pageCounter - 1 ] = null ; } } }
free the memory for the last page chunk
free the memory for the last page chunk