Class ProxyingMetadataHandlerProvider

java.lang.Object
org.apache.calcite.rel.metadata.ProxyingMetadataHandlerProvider
All Implemented Interfaces:
MetadataHandlerProvider

public class ProxyingMetadataHandlerProvider extends Object implements MetadataHandlerProvider
A MetadataHandlerProvider built on a RelMetadataProvider.

Uses proxies to call the underlying metadata provider.

  • Constructor Details

    • ProxyingMetadataHandlerProvider

      public ProxyingMetadataHandlerProvider(RelMetadataProvider provider)
      Create a proxying handler provider.
      Parameters:
      provider - The provider this will operate against.
  • Method Details

    • handler

      public <MH extends MetadataHandler<?>> MH handler(Class<MH> handlerClass)
      Description copied from interface: MetadataHandlerProvider
      Provide a handler for the requested metadata class.
      Specified by:
      handler in interface MetadataHandlerProvider
      Type Parameters:
      MH - The metadata type the handler relates to.
      Parameters:
      handlerClass - The handler interface expected
      Returns:
      The handler implementation.