Class TableConfigUtils


  • public class TableConfigUtils
    extends Object
    • Method Detail

      • toZNRecord

        public static org.apache.helix.zookeeper.datamodel.ZNRecord toZNRecord​(TableConfig tableConfig)
                                                                        throws com.fasterxml.jackson.core.JsonProcessingException
        Throws:
        com.fasterxml.jackson.core.JsonProcessingException
      • convertFromLegacyTableConfig

        public static void convertFromLegacyTableConfig​(TableConfig tableConfig)
        Helper method to convert from legacy/deprecated configs into current version of TableConfig.
        • Moves deprecated ingestion related configs into Ingestion Config.
        • The conversion happens in-place, the specified tableConfig is mutated in-place.
        Parameters:
        tableConfig - Input table config.
      • hasPreConfiguredInstancePartitions

        public static boolean hasPreConfiguredInstancePartitions​(TableConfig tableConfig)
        Returns true if the table has pre-configured instance partitions for any type (OFFLINE/CONSUMING/COMPLETED).
      • hasPreConfiguredInstancePartitions

        public static boolean hasPreConfiguredInstancePartitions​(TableConfig tableConfig,
                                                                 InstancePartitionsType instancePartitionsType)
        Returns true if the table has pre-configured instance partitions for the given type.