Class QuerySqlStatisticProvider

    • Field Detail

      • SILENT_CACHING_INSTANCE

        public static final SqlStatisticProvider SILENT_CACHING_INSTANCE
        Instance that uses SQL to compute statistics, does not log SQL statements, and caches up to 1,024 results for up to 30 minutes. (That period should be sufficient for the duration of Calcite's tests, and many other purposes.)
      • sqlConsumer

        private final java.util.function.Consumer<java.lang.String> sqlConsumer
    • Constructor Detail

      • QuerySqlStatisticProvider

        public QuerySqlStatisticProvider​(java.util.function.Consumer<java.lang.String> sqlConsumer)
        Creates a QuerySqlStatisticProvider.
        Parameters:
        sqlConsumer - Called when each SQL statement is generated