private void updateBlockletFileChannel() throws CarbonDataWriterException {
  if (currentFileSize >= fileSizeInBytes) {
    writeBlockletMetaDataToFile();
    this.currentFileSize=0;
    CarbonUtil.closeStreams(fileDataOutStream);
    initChannel();
  }
}

private void updateBlockletFileChannel ( ) throws CarbonDataWriterException { if ( currentFileSize >= fileSizeInBytes ) { writeBlockletMetaDataToFile ( ) ; this . currentFileSize = 0 ; CarbonUtil . closeStreams ( fileDataOutStream ) ; initChannel ( ) ; } }
this method will be used to update the file channel with new file ; new file will be created once existing file reached the file size limit this method will first check whether existing file size is exceeded the file size limit if yes then write the blocklet metadata to file then set the current file size to 0 close the existing file channel get the new file name and get the channel for new file
