Class LatticeSuggesterTest.Tester

  • Enclosing class:
    LatticeSuggesterTest

    private static class LatticeSuggesterTest.Tester
    extends java.lang.Object
    Test helper.
    • Field Detail

      • s

        final org.apache.calcite.materialize.LatticeSuggester s
      • config

        private final org.apache.calcite.tools.FrameworkConfig config
    • Constructor Detail

      • Tester

        Tester()
      • Tester

        private Tester​(org.apache.calcite.tools.FrameworkConfig config)
    • Method Detail

      • builder

        private org.apache.calcite.tools.Frameworks.ConfigBuilder builder()
      • addQuery

        java.util.List<org.apache.calcite.materialize.Lattice> addQuery​(java.lang.String q)
                                                                 throws org.apache.calcite.sql.parser.SqlParseException,
                                                                        org.apache.calcite.tools.ValidationException,
                                                                        org.apache.calcite.tools.RelConversionException
        Throws:
        org.apache.calcite.sql.parser.SqlParseException
        org.apache.calcite.tools.ValidationException
        org.apache.calcite.tools.RelConversionException
      • node

        org.apache.calcite.materialize.LatticeRootNode node​(java.lang.String q)
                                                     throws org.apache.calcite.sql.parser.SqlParseException,
                                                            org.apache.calcite.tools.ValidationException,
                                                            org.apache.calcite.tools.RelConversionException
        Parses a query returns its graph.
        Throws:
        org.apache.calcite.sql.parser.SqlParseException
        org.apache.calcite.tools.ValidationException
        org.apache.calcite.tools.RelConversionException
      • withParser

        private LatticeSuggesterTest.Tester withParser​(java.util.function.Function<org.apache.calcite.sql.parser.SqlParser.ConfigBuilder,​org.apache.calcite.sql.parser.SqlParser.ConfigBuilder> transform)