Interface CompactionPlanner.PlanningParameters
- Enclosing interface:
- CompactionPlanner
public static interface CompactionPlanner.PlanningParameters
This interface exists so the API can evolve and additional parameters can be passed to the
method in the future.
- Since:
- 2.1.0
-
Method Details
-
getNamespaceId
- Returns:
- The id of the namespace that the table is assigned to
- Throws:
TableNotFoundException
- thrown when the namespace for a table cannot be calculated- Since:
- 2.1.4
-
getTableId
TableId getTableId()- Returns:
- The id of the table that compactions are being planned for.
- See Also:
-
getTabletId
TabletId getTabletId()- Returns:
- the tablet for which a compaction is being planned
- Since:
- 2.1.4
-
getServiceEnvironment
ServiceEnvironment getServiceEnvironment() -
getKind
CompactionKind getKind() -
getRatio
double getRatio()- Returns:
- the compaction ratio configured for the table
-
getAll
Collection<CompactableFile> getAll()- Returns:
- the set of all files a tablet has.
-
getCandidates
Collection<CompactableFile> getCandidates()- Returns:
- the set of files that could be compacted depending on what
getKind()
returns.
-
getRunningCompactions
Collection<CompactionJob> getRunningCompactions()- Returns:
- jobs that are currently running
-
getExecutionHints
- Returns:
- For a user compaction (when
getKind()
returnsCompactionKind.USER
) where the user set execution hints viaCompactionConfig.setExecutionHints(Map)
this will return those hints. Otherwise this will return an immutable empty map.
-
createPlanBuilder
CompactionPlan.Builder createPlanBuilder()- Returns:
- A compaction plan builder that must be used to create a compaction plan.
-