use of org.apache.accumulo.core.spi.compaction.CompactionPlanner.PlanningParameters in project accumulo by apache.
the class CompactionService method getCompactionPlan.
private CompactionPlan getCompactionPlan(CompactionKind kind, Compactable.Files files, Compactable compactable) {
PlanningParameters params = new CpPlanParams(kind, compactable, files);
log.trace("Planning compactions {} {} {} {}", planner.getClass().getName(), compactable.getExtent(), kind, files);
CompactionPlan plan;
try {
plan = planner.makePlan(params);
} catch (RuntimeException e) {
log.debug("Planner failed {} {} {} {}", planner.getClass().getName(), compactable.getExtent(), kind, files, e);
throw e;
}
return convertPlan(plan, kind, files.allFiles, files.candidates);
}
Aggregations