Class NormalizedDocumentFactory.Options

    • Field Detail

      • DEFAULT_MAX_FIELDS_COUNT

        public static final int DEFAULT_MAX_FIELDS_COUNT
        The default max fields count is 100,000. This is big enough for even very large queries, but can be changed via {#setDefaultOptions
        See Also:
        Constant Field Values
    • Method Detail

      • locale

        public NormalizedDocumentFactory.Options locale​(java.util.Locale locale)
        Locale to use when parsing the query.

        e.g. can be passed to Coercing for parsing.

        Parameters:
        locale - the locale to use
        Returns:
        new options object to use
      • maxChildrenDepth

        public NormalizedDocumentFactory.Options maxChildrenDepth​(int maxChildrenDepth)
        Controls the maximum depth of the operation. Can be used to prevent against malicious operations.
        Parameters:
        maxChildrenDepth - the max depth
        Returns:
        new options object to use
      • maxFieldsCount

        public NormalizedDocumentFactory.Options maxFieldsCount​(int maxFieldsCount)
        Controls the maximum number of ENFs created. Can be used to prevent against malicious operations.
        Parameters:
        maxFieldsCount - the max number of ENFs created
        Returns:
        new options object to use
      • getLocale

        public java.util.Locale getLocale()
        Returns:
        locale to use during operation parsing
        See Also:
        locale(Locale)
      • getMaxChildrenDepth

        public int getMaxChildrenDepth()
        Returns:
        maximum children depth before aborting parsing
        See Also:
        maxChildrenDepth(int)
      • getMaxFieldsCount

        public int getMaxFieldsCount()