processing/src/main/java/org/apache/carbondata/processing/loading/sort/unsafe/merger/UnsafeIntermediateFileMerger.java
/**
   * This method is responsible for initializing the out stream
   *
   * @throws CarbonSortKeyAndGroupByException
   */
This method is responsible for initializing the out stream
@throws CarbonSortKeyAndGroupByException
This method is responsible for initializing the out stream @throws CarbonSortKeyAndGroupByException
private void initialize() throws CarbonSortKeyAndGroupByException {
    try {
      stream = FileFactory.getDataOutputStream(outPutFile.getPath(), FileFactory.FileType.LOCAL,
          writeBufferSize, compressorName);
      this.stream.writeInt(this.totalNumberOfRecords);
    } catch (FileNotFoundException e) {
      throw new CarbonSortKeyAndGroupByException("Problem while getting the file", e);
    } catch (IOException e) {
      throw new CarbonSortKeyAndGroupByException("Problem while writing the data to file", e);
    }
  }
private void initialize ( ) throws CarbonSortKeyAndGroupByException { try { stream = FileFactory . getDataOutputStream ( outPutFile . getPath ( ) , FileFactory . FileType . LOCAL , writeBufferSize , compressorName ) ; this . stream . writeInt ( this . totalNumberOfRecords ) ; } catch ( FileNotFoundException e ) { throw new CarbonSortKeyAndGroupByException ( "Problem while getting the file" , e ) ; } catch ( IOException e ) { throw new CarbonSortKeyAndGroupByException ( "Problem while writing the data to file" , e ) ; } }
This method is responsible for initializing the out stream
 @throws CarbonSortKeyAndGroupByException
This method is responsible for initializing the out stream @throws CarbonSortKeyAndGroupByException