Interface TabletBalancer.AssignmentParameters

  • All Known Implementing Classes:
    AssignmentParamsImpl
    Enclosing interface:
    TabletBalancer

    public static interface TabletBalancer.AssignmentParameters
    An interface for grouping parameters required for the balancer to assign unassigned tablets. This interface allows for evolution of the parameter set without changing the balancer's method signature.
    Since:
    2.1.0
    • Method Detail

      • unassignedTablets

        Map<TabletId,​TabletServerId> unassignedTablets()
        Returns:
        the tablets that need to be assigned, mapped to their previous known location (read-only)
      • addAssignment

        void addAssignment​(TabletId tabletId,
                           TabletServerId tabletServerId)
        Assigns tabletId to tabletServerId.