Interface PinotConfigProvider


  • public interface PinotConfigProvider
    An interface for the provider of pinot table configs and schemas.
    • 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 the TableConfigChangeListener and 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:
        true if the listener is successfully registered, false if the listener is already registered.
      • getSchema

        Schema getSchema​(String rawTableName)
        Returns the schema for the given raw table name.
      • registerSchemaChangeListener

        boolean registerSchemaChangeListener​(SchemaChangeListener schemaChangeListener)
        Registers the SchemaChangeListener and 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:
        true if the listener is successfully registered, false if the listener is already registered.