Search in sources :

Example 1 with PlanningParameters

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);
}
Also used : CompactionPlan(org.apache.accumulo.core.spi.compaction.CompactionPlan) PlanningParameters(org.apache.accumulo.core.spi.compaction.CompactionPlanner.PlanningParameters)

Aggregations

CompactionPlan (org.apache.accumulo.core.spi.compaction.CompactionPlan)1 PlanningParameters (org.apache.accumulo.core.spi.compaction.CompactionPlanner.PlanningParameters)1