Class TableStateUtils
- java.lang.Object
-
- org.apache.pinot.segment.local.utils.tablestate.TableStateUtils
-
public class TableStateUtils extends Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static booleanisAllSegmentsLoaded(org.apache.helix.HelixManager helixManager, String tableNameWithType)Checks if all segments for the given @param tableNameWithType are succesfully loaded This function will get all segments in IDEALSTATE and CURRENTSTATE for the given table, and then check if all ONLINE segments in IDEALSTATE match with CURRENTSTATE.static voidwaitForAllSegmentsLoaded(org.apache.helix.HelixManager helixManager, String tableNameWithType)
-
-
-
Method Detail
-
isAllSegmentsLoaded
public static boolean isAllSegmentsLoaded(org.apache.helix.HelixManager helixManager, String tableNameWithType)Checks if all segments for the given @param tableNameWithType are succesfully loaded This function will get all segments in IDEALSTATE and CURRENTSTATE for the given table, and then check if all ONLINE segments in IDEALSTATE match with CURRENTSTATE.- Parameters:
helixManager- helix manager for the server instancetableNameWithType- table name for which segment state is to be checked- Returns:
- true if all segments for the given table are succesfully loaded. False otherwise
-
waitForAllSegmentsLoaded
public static void waitForAllSegmentsLoaded(org.apache.helix.HelixManager helixManager, String tableNameWithType)
-
-