Skip to content

Commit f5c009b

Browse files
committed
Adding new API to register backward compatible class names
1 parent 7250717 commit f5c009b

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

pinot-spi/src/main/java/org/apache/pinot/spi/plugin/PluginManager.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -496,4 +496,9 @@ public void registerRecordReaderClass(String inputFormat, String recordReaderCla
496496
INPUT_FORMAT_TO_RECORD_READER_CONFIG_CLASS_NAME_MAP.put(inputFormat.toLowerCase(), recordReaderConfigClass);
497497
}
498498
}
499+
500+
// Register plugin class names when users try to deprecate old plugins/libraries.
501+
public void registerBackwardCompatibleClassName(String oldClassName, String newClassName) {
502+
PLUGINS_BACKWARD_COMPATIBLE_CLASS_NAME_MAP.put(oldClassName, newClassName);
503+
}
499504
}

0 commit comments

Comments
 (0)