core/src/main/java/org/apache/carbondata/core/scan/result/AbstractScannedResult.java
/**
   * Below method will be used to free the occupied memory
   */
Below method will be used to free the occupied memory
Below method will be used to free the occupied memory
public void freeMemory() {
    if (null != dimensionDataChunks) {
      for (int i = 0; i < dimensionDataChunks.length; i++) {
        if (null != dimensionDataChunks[i]) {
          for (int j = 0; j < dimensionDataChunks[i].length; j++) {
            if (null != dimensionDataChunks[i][j]) {
              dimensionDataChunks[i][j].freeMemory();
            }
          }
        }
      }
    }
    if (null != measureDataChunks) {
      for (int i = 0; i < measureDataChunks.length; i++) {
        if (null != measureDataChunks[i]) {
          for (int j = 0; j < measureDataChunks[i].length; j++) {
            if (null != measureDataChunks[i][j]) {
              measureDataChunks[i][j].freeMemory();
            }
          }
        }
      }
    }
    if (null != dimRawColumnChunks) {
      for (int i = 0; i < dimRawColumnChunks.length; i++) {
        if (null != dimRawColumnChunks[i]) {
          dimRawColumnChunks[i].freeMemory();
        }
      }
    }
  }
public void freeMemory ( ) { if ( null != dimensionDataChunks ) { for ( int i = 0 ; i < dimensionDataChunks . length ; i ++ ) { if ( null != dimensionDataChunks [ i ] ) { for ( int j = 0 ; j < dimensionDataChunks [ i ] . length ; j ++ ) { if ( null != dimensionDataChunks [ i ] [ j ] ) { dimensionDataChunks [ i ] [ j ] . freeMemory ( ) ; } } } } } if ( null != measureDataChunks ) { for ( int i = 0 ; i < measureDataChunks . length ; i ++ ) { if ( null != measureDataChunks [ i ] ) { for ( int j = 0 ; j < measureDataChunks [ i ] . length ; j ++ ) { if ( null != measureDataChunks [ i ] [ j ] ) { measureDataChunks [ i ] [ j ] . freeMemory ( ) ; } } } } } if ( null != dimRawColumnChunks ) { for ( int i = 0 ; i < dimRawColumnChunks . length ; i ++ ) { if ( null != dimRawColumnChunks [ i ] ) { dimRawColumnChunks [ i ] . freeMemory ( ) ; } } } }
Below method will be used to free the occupied memory
Below method will be used to free the occupied memory
// first free the dimension chunks // free the measure data chunks // free the raw chunks