Class MetadataFactoryImpl

java.lang.Object
org.apache.calcite.rel.metadata.MetadataFactoryImpl
All Implemented Interfaces:
MetadataFactory

@Deprecated public class MetadataFactoryImpl extends Object implements MetadataFactory
Deprecated.
Implementation of MetadataFactory that gets providers from a RelMetadataProvider and stores them in a cache.

The cache does not store metadata. It remembers which providers can provide which kinds of metadata, for which kinds of relational expressions.

  • Field Details

  • Constructor Details

  • Method Details

    • query

      public <@Nullable M extends @Nullable Metadata> M query(RelNode rel, RelMetadataQuery mq, Class<@Nullable M> metadataClazz)
      Deprecated.
      Description copied from interface: MetadataFactory
      Returns a metadata interface to get a particular kind of metadata from a particular relational expression. Returns null if that kind of metadata is not available.
      Specified by:
      query in interface MetadataFactory
      Type Parameters:
      M - Metadata type
      Parameters:
      rel - Relational expression
      mq - Metadata query
      metadataClazz - Metadata class
      Returns:
      Metadata bound to rel and query