Interface PinotConfigProvider
-
public interface PinotConfigProviderAn interface for the provider of pinot table configs and schemas.
-
-
Method Summary
Modifier and Type Method Description SchemagetSchema(String rawTableName)Returns the schema for the given raw table name.TableConfiggetTableConfig(String tableNameWithType)Returns the table config for the given table name with type suffix.booleanregisterSchemaChangeListener(SchemaChangeListener schemaChangeListener)Registers theSchemaChangeListenerand notifies it whenever any changes (addition, update, removal) to any of the schemas are detected.booleanregisterTableConfigChangeListener(TableConfigChangeListener tableConfigChangeListener)Registers theTableConfigChangeListenerand notifies it whenever any changes (addition, update, removal) to any of the table configs are detected.
-
-
-
Method Detail
-
getTableConfig
TableConfig getTableConfig(String tableNameWithType)
Returns the table config for the given table name with type suffix.
-
registerTableConfigChangeListener
boolean registerTableConfigChangeListener(TableConfigChangeListener tableConfigChangeListener)
Registers theTableConfigChangeListenerand notifies it whenever any changes (addition, update, removal) to any of the table configs are detected. If the listener is successfully registered,TableConfigChangeListener.onChange(List)will be invoked with the current table configs.- Returns:
trueif the listener is successfully registered,falseif the listener is already registered.
-
registerSchemaChangeListener
boolean registerSchemaChangeListener(SchemaChangeListener schemaChangeListener)
Registers theSchemaChangeListenerand notifies it whenever any changes (addition, update, removal) to any of the schemas are detected. If the listener is successfully registered,SchemaChangeListener.onChange(List)will be invoked with the current schemas.- Returns:
trueif the listener is successfully registered,falseif the listener is already registered.
-
-