Interface StorageProviderFactory


public interface StorageProviderFactory
Factory for creating StorageProvider instances.

Two abstract methods: create(Settings) for cluster-settings-only construction, and createTrackingConsumedKeys(Settings, Map) for per-query construction paired with the keys this factory claims from the configuration map. Both must be implemented explicitly so a factory cannot silently drop per-query configuration keys.

Two static helpers cover the common shapes:

  • noConfigKeys(Supplier) — for factories that recognise no per-query keys today. Forwards to the supplier in both methods; any non-empty config map is rejected by the generic validator at planning time as "unknown options".
  • of(Supplier, Function, Function) — for factories that resolve a typed Configuration from the map and construct a provider from it.