org.apache.calcite.rel.metadata.MetadataFactoryImpl Java Examples
The following examples show how to use
org.apache.calcite.rel.metadata.MetadataFactoryImpl.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: RelOptCluster.java From calcite with Apache License 2.0 | 5 votes |
/** * Overrides the default metadata provider for this cluster. * * @param metadataProvider custom provider */ public void setMetadataProvider(RelMetadataProvider metadataProvider) { this.metadataProvider = metadataProvider; this.metadataFactory = new MetadataFactoryImpl(metadataProvider); // Wrap the metadata provider as a JaninoRelMetadataProvider // and set it to the ThreadLocal, // JaninoRelMetadataProvider is required by the RelMetadataQuery. RelMetadataQueryBase.THREAD_PROVIDERS .set(JaninoRelMetadataProvider.of(metadataProvider)); }
Example #2
Source File: RelOptCluster.java From Bats with Apache License 2.0 | 2 votes |
/** * Overrides the default metadata provider for this cluster. * * @param metadataProvider custom provider */ public void setMetadataProvider(RelMetadataProvider metadataProvider) { this.metadataProvider = metadataProvider; this.metadataFactory = new MetadataFactoryImpl(metadataProvider); }
Example #3
Source File: RelOptCluster.java From flink with Apache License 2.0 | 2 votes |
/** * Overrides the default metadata provider for this cluster. * * @param metadataProvider custom provider */ public void setMetadataProvider(RelMetadataProvider metadataProvider) { this.metadataProvider = metadataProvider; this.metadataFactory = new MetadataFactoryImpl(metadataProvider); }
Example #4
Source File: RelOptCluster.java From flink with Apache License 2.0 | 2 votes |
/** * Overrides the default metadata provider for this cluster. * * @param metadataProvider custom provider */ public void setMetadataProvider(RelMetadataProvider metadataProvider) { this.metadataProvider = metadataProvider; this.metadataFactory = new MetadataFactoryImpl(metadataProvider); }