Class RequestToAbstract

  • Direct Known Subclasses:
    RequestToElasticsearch, RequestToMongodb

    public class RequestToAbstract
    extends java.lang.Object
    Request To X Abstract class. All translators should be based on this one.
    • Constructor Detail

      • RequestToAbstract

        public RequestToAbstract​(AbstractParser<?> requestParser)
        Parameters:
        requestParser - AbstractParser in unknown type
    • Method Detail

      • getRequestParser

        public AbstractParser<?> getRequestParser()
        Returns:
        the associated RequestParser
      • hasFullTextQuery

        public boolean hasFullTextQuery()
        Returns:
        true if at least one Query is needing Elasticsearch
      • hintCache

        public boolean hintCache()
        Returns:
        True if the hint contains cache
      • hintNoTimeout

        public boolean hintNoTimeout()
        Returns:
        True if the hint contains notimeout
      • model

        public BuilderToken.FILTERARGS model()
        Returns:
        the model between Units/ObjectGroups/Objects (in that order)
      • getLastDepth

        public int getLastDepth()
        Returns:
        The possible maximum depth
      • getNbQueries

        public int getNbQueries()
        Returns:
        the number of queries
      • isMultiple

        public boolean isMultiple()
        Returns:
        True if this request is a "multiple" result request
      • getHints

        public com.fasterxml.jackson.databind.node.ArrayNode getHints()
        Used by the Data Engine (cache, nocache, notimeout (noCursorTimeout(noCursorTimeout)))
        Returns:
        the array of hints (if any)
      • getFinalLimit

        public int getFinalLimit()
        FindIterable.limit(limit)
        Returns:
        the limit
      • getFinalOffset

        public int getFinalOffset()
        FindIterable.skip(offset)
        Returns:
        the offset
      • getUsage

        public java.lang.String getUsage()
        Returns:
        the associated usage if any
      • getNthQuery

        public final Query getNthQuery​(int nth)
        Parameters:
        nth - int
        Returns:
        the nth Query