Class EndQuery

java.lang.Object
ai.vespa.client.dsl.EndQuery

public class EndQuery extends Object
EndQuery contains a 'Query' This object holds timeout, offset, limit, group and orderBy information before the semicolon
  • Method Details

    • offset

      public EndQuery offset(int offset)
      Offset. https://docs.vespa.ai/en/reference/query-language-reference.html#limit-offset
      Parameters:
      offset - the offset
      Returns:
      the end query
    • timeout

      public EndQuery timeout(int timeout)
      Timeout. https://docs.vespa.ai/en/reference/query-language-reference.html#timeout
      Parameters:
      timeout - the timeout
      Returns:
      the end query
    • limit

      public EndQuery limit(int limit)
      Limit. https://docs.vespa.ai/en/reference/query-language-reference.html#limit-offset
      Parameters:
      limit - the limit
      Returns:
      the end query
    • semicolon

      @Deprecated public FixedQuery semicolon()
      Deprecated.
      use {link #fix}
      Calls fix()
    • fix

      public FixedQuery fix()
      Returns a fixed query containing this.
    • build

      public String build()
      Calls fix().build()
    • group

      public EndQuery group(Group group)
      Group. https://docs.vespa.ai/en/reference/query-language-reference.html#grouping
      Parameters:
      group - the group
      Returns:
      the end query
    • group

      public EndQuery group(String groupQueryStr)
      Group. https://docs.vespa.ai/en/reference/query-language-reference.html#grouping
      Parameters:
      groupQueryStr - the group str
      Returns:
      the end query
    • orderByAsc

      public EndQuery orderByAsc(Annotation annotation, String fieldName)
      Order by asc. https://docs.vespa.ai/en/reference/query-language-reference.html#order-by
      Parameters:
      annotation - the annotation
      fieldName - the field name
      Returns:
      the end query
    • orderByAsc

      public EndQuery orderByAsc(String fieldName)
      Order by asc. https://docs.vespa.ai/en/reference/query-language-reference.html#order-by
      Parameters:
      fieldName - the field name
      Returns:
      the end query
    • orderByDesc

      public EndQuery orderByDesc(Annotation annotation, String fieldName)
      Order by desc. https://docs.vespa.ai/en/reference/query-language-reference.html#order-by
      Parameters:
      annotation - the annotation
      fieldName - the field name
      Returns:
      the end query
    • orderByDesc

      public EndQuery orderByDesc(String fieldName)
      Order by desc. https://docs.vespa.ai/en/reference/query-language-reference.html#order-by
      Parameters:
      fieldName - the field name
      Returns:
      the end query
    • toString

      public String toString()
      Overrides:
      toString in class Object