Class SelectMultipleSchemaValidator

  • All Implemented Interfaces:
    DslValidator

    public class SelectMultipleSchemaValidator
    extends java.lang.Object
    implements DslValidator
    Dsl schema validator for multiple queries DSL queries.
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static void checkAuthorizeTrackTotalHits​(com.fasterxml.jackson.databind.JsonNode queryJson, boolean configAuthorizeTrackTotalHits)
      Check if property track_total_hits is already authorized in order to use it in DSL filter
      void validate​(com.fasterxml.jackson.databind.JsonNode dsl)
      Validate a dsl query
      static void validateStreamQuery​(com.fasterxml.jackson.databind.JsonNode queryJson)
      Check if query is a valid stream query or not
      • Methods inherited from class java.lang.Object

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

      • SelectMultipleSchemaValidator

        public SelectMultipleSchemaValidator()
                                      throws java.io.IOException
        Constructor
        Throws:
        java.io.IOException - thrown when the schema file is not found or invalid
    • Method Detail

      • validateStreamQuery

        public static void validateStreamQuery​(com.fasterxml.jackson.databind.JsonNode queryJson)
                                        throws ValidationException
        Check if query is a valid stream query or not
        Parameters:
        queryJson -
        Throws:
        ValidationException
      • checkAuthorizeTrackTotalHits

        public static void checkAuthorizeTrackTotalHits​(com.fasterxml.jackson.databind.JsonNode queryJson,
                                                        boolean configAuthorizeTrackTotalHits)
                                                 throws ValidationException
        Check if property track_total_hits is already authorized in order to use it in DSL filter
        Parameters:
        queryJson -
        configAuthorizeTrackTotalHits -
        Throws:
        ValidationException