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.ZNRecord znRecord)static org.apache.helix.ZNRecordtoZNRecord(TableConfig tableConfig)
-
-
-
Method Detail
-
fromZNRecord
public static TableConfig fromZNRecord(org.apache.helix.ZNRecord znRecord) throws IOException
- Throws:
IOException
-
toZNRecord
public static org.apache.helix.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.
-
-