private List<File> generateTemporaryFilesForFinalize(int numFiles) throws Exception {
  List<File> temporaryFiles=new ArrayList<>();
  for (int i=0; i < numFiles; i++) {
    String temporaryFilename=FileBasedWriteOperation.buildTemporaryFilename(baseTemporaryFilename,"" + i);
    File tmpFile=tmpFolder.newFile(temporaryFilename);
    temporaryFiles.add(tmpFile);
  }
  return temporaryFiles;
}

private List < File > generateTemporaryFilesForFinalize ( int numFiles ) throws Exception { List < File > temporaryFiles = new ArrayList < > ( ) ; for ( int i = 0 ; i < numFiles ; i ++ ) { String temporaryFilename = FileBasedWriteOperation . buildTemporaryFilename ( baseTemporaryFilename , "" + i ) ; File tmpFile = tmpFolder . newFile ( temporaryFilename ) ; temporaryFiles . add ( tmpFile ) ; } return temporaryFiles ; }
generate n temporary files using the temporary file pattern of filebasedwriter .
