public void finish() throws CarbonDataWriterException {
  if (this.entryCount > 0) {
    producerExecutorServiceTaskList.add(producerExecutorService.submit(new Producer(blockletDataHolder,dataRows,++writerTaskSequenceCounter)));
    blockletProcessingCount.incrementAndGet();
    processedDataCount+=entryCount;
  }
  closeWriterExecutionService(producerExecutorService);
  processWriteTaskSubmitList(producerExecutorServiceTaskList);
  processingComplete=true;
}

public void finish ( ) throws CarbonDataWriterException { if ( this . entryCount > 0 ) { producerExecutorServiceTaskList . add ( producerExecutorService . submit ( new Producer ( blockletDataHolder , dataRows , ++ writerTaskSequenceCounter ) ) ) ; blockletProcessingCount . incrementAndGet ( ) ; processedDataCount += entryCount ; } closeWriterExecutionService ( producerExecutorService ) ; processWriteTaskSubmitList ( producerExecutorServiceTaskList ) ; processingComplete = true ; }
below method will be used to finish the data handler
