Class QueryBuildersTest


  • public class QueryBuildersTest
    extends java.lang.Object
    Check that internal queries are correctly converted to ES search query (as JSON)
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private com.fasterxml.jackson.databind.ObjectMapper mapper  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void boolQuery()  
      void exists()  
      void matchAll()  
      void range()  
      void term()
      Test for simple scalar terms (boolean, int etc.)
      void terms()  
      private java.lang.String toJson​(org.apache.calcite.adapter.elasticsearch.QueryBuilders.QueryBuilder builder)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • mapper

        private final com.fasterxml.jackson.databind.ObjectMapper mapper
    • Constructor Detail

      • QueryBuildersTest

        public QueryBuildersTest()
    • Method Detail

      • term

        public void term()
                  throws java.lang.Exception
        Test for simple scalar terms (boolean, int etc.)
        Throws:
        java.lang.Exception - not expected
      • terms

        public void terms()
                   throws java.lang.Exception
        Throws:
        java.lang.Exception
      • boolQuery

        public void boolQuery()
                       throws java.lang.Exception
        Throws:
        java.lang.Exception
      • exists

        public void exists()
                    throws java.lang.Exception
        Throws:
        java.lang.Exception
      • range

        public void range()
                   throws java.lang.Exception
        Throws:
        java.lang.Exception
      • matchAll

        public void matchAll()
                      throws java.io.IOException
        Throws:
        java.io.IOException
      • toJson

        private java.lang.String toJson​(org.apache.calcite.adapter.elasticsearch.QueryBuilders.QueryBuilder builder)
                                 throws java.io.IOException
        Throws:
        java.io.IOException