Class TableStateUtils


  • public class TableStateUtils
    extends Object
    • Method Summary

      Modifier and Type Method Description
      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.
      static void waitForAllSegmentsLoaded​(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 instance
        tableNameWithType - 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)