private void run_sequential() throws Exception { // ObjectSerializerUtil serializer = new JavaObjectSerializerUtil(); ObjectSerializerUtil serializer = new KryoObjectSerializerUtil(); File obj_folder = new File(AppConstants.ABS_OBJECTS_FOLDER); List<File> files = getSortedFilesInAFolder_Integer_Sort(obj_folder); for (File f : files) { ArrayList<LogData> lds = serializer.read(f); processAndWriteEachBatch(lds); } }
private void readEachFile(File _f) throws Exception { // System.out.println("Thread - " + runEach + " : Reading file > " + _f.getName()); ArrayList<LogData> lds = serializer.read(_f); QUEUE.add(lds); }