Class TableConfigUtils
- java.lang.Object
-
- org.apache.pinot.common.utils.config.TableConfigUtils
-
public class TableConfigUtils extends Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidconvertFromLegacyTableConfig(TableConfig tableConfig)Helper method to convert from legacy/deprecated configs into current version of TableConfig.static TableConfigfromZNRecord(org.apache.helix.zookeeper.datamodel.ZNRecord znRecord)static booleanhasPreConfiguredInstancePartitions(TableConfig tableConfig)Returns true if the table has pre-configured instance partitions for any type (OFFLINE/CONSUMING/COMPLETED).static booleanhasPreConfiguredInstancePartitions(TableConfig tableConfig, InstancePartitionsType instancePartitionsType)Returns true if the table has pre-configured instance partitions for the given type.static org.apache.helix.zookeeper.datamodel.ZNRecordtoZNRecord(TableConfig tableConfig)
-
-
-
Method Detail
-
fromZNRecord
public static TableConfig fromZNRecord(org.apache.helix.zookeeper.datamodel.ZNRecord znRecord) throws IOException
- Throws:
IOException
-
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.
-
-