Class InstanceAssignmentConfigUtils
- java.lang.Object
-
- org.apache.pinot.common.assignment.InstanceAssignmentConfigUtils
-
public class InstanceAssignmentConfigUtils extends Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static booleanallowInstanceAssignment(TableConfig tableConfig, InstancePartitionsType instancePartitionsType)Returns whether the instance assignment is allowed for the given table config and instance partitions type.static InstanceAssignmentConfiggetInstanceAssignmentConfig(TableConfig tableConfig, InstancePartitionsType instancePartitionsType)Extracts or generates default instance assignment config from the given table config.static booleanshouldRelocateCompletedSegments(TableConfig tableConfig)Returns whether the COMPLETED segments should be relocated (offloaded from CONSUMING instances to COMPLETED instances) for a LLC real-time table based on the given table config.
-
-
-
Method Detail
-
shouldRelocateCompletedSegments
public static boolean shouldRelocateCompletedSegments(TableConfig tableConfig)
Returns whether the COMPLETED segments should be relocated (offloaded from CONSUMING instances to COMPLETED instances) for a LLC real-time table based on the given table config.COMPLETED segments should be relocated iff the COMPLETED instance assignment is configured or (for backward-compatibility) COMPLETED server tag is overridden to be different from the CONSUMING server tag.
-
allowInstanceAssignment
public static boolean allowInstanceAssignment(TableConfig tableConfig, InstancePartitionsType instancePartitionsType)
Returns whether the instance assignment is allowed for the given table config and instance partitions type.
-
getInstanceAssignmentConfig
public static InstanceAssignmentConfig getInstanceAssignmentConfig(TableConfig tableConfig, InstancePartitionsType instancePartitionsType)
Extracts or generates default instance assignment config from the given table config.
-
-