julianhyde commented on a change in pull request #1533: [CALCITE-3446] Make
RelMetadataQuery extensible
URL: https://github.com/apache/calcite/pull/1533#discussion_r340236285
##########
File path: core/src/main/java/org/apache/calcite/plan/RelOptCluster.java
##########
@@ -49,6 +52,7 @@
private MetadataFactory metadataFactory;
private final RelTraitSet emptyTraitSet;
private RelMetadataQuery mq;
+ private Supplier<RelMetadataQuery> mqSupplier;
Review comment:
Suppliers are usually final. Any way to make this final?
Have you considered using a memoizing supplier? Guava's
{{Suppliers.memoize}}.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services