List<IterInfo> iiList = new ArrayList<IterInfo>();
Map<String,Map<String,String>> iterOptions = new HashMap<String,Map<String,String>>();
for (IteratorSetting iterSetting : compactor.iterators) {
iiList.add(new IterInfo(iterSetting.getPriority(), iterSetting.getIteratorClass(), iterSetting.getName()));
iterOptions.put(iterSetting.getName(), iterSetting.getOptions());
}
return new ActiveCompaction(compactor.extent.toThrift(), System.currentTimeMillis() - compactor.startTime, new ArrayList<String>(
compactor.filesToCompact.keySet()), compactor.outputFile, type, reason, localityGroup, entriesRead, entriesWritten, iiList, iterOptions);