Package ai.vespa.client.dsl
Class EndQuery
java.lang.Object
ai.vespa.client.dsl.EndQuery
EndQuery contains a 'Query'
This object holds timeout, offset, limit, group and orderBy information before the semicolon
-
Method Summary
Modifier and TypeMethodDescriptionbuild()Calls fix().build()fix()Returns a fixed query containing this.Group.Group.limit(int limit) Limit.offset(int offset) Offset.orderByAsc(Annotation annotation, String fieldName) Order by asc.orderByAsc(String fieldName) Order by asc.orderByDesc(Annotation annotation, String fieldName) Order by desc.orderByDesc(String fieldName) Order by desc.Deprecated.use {link #fix}timeout(int timeout) Timeout.toString()
-
Method Details
-
offset
Offset. https://docs.vespa.ai/en/reference/query-language-reference.html#limit-offset- Parameters:
offset- the offset- Returns:
- the end query
-
timeout
Timeout. https://docs.vespa.ai/en/reference/query-language-reference.html#timeout- Parameters:
timeout- the timeout- Returns:
- the end query
-
limit
Limit. https://docs.vespa.ai/en/reference/query-language-reference.html#limit-offset- Parameters:
limit- the limit- Returns:
- the end query
-
semicolon
Deprecated.use {link #fix}Calls fix() -
fix
Returns a fixed query containing this. -
build
Calls fix().build() -
group
Group. https://docs.vespa.ai/en/reference/query-language-reference.html#grouping- Parameters:
group- the group- Returns:
- the end query
-
group
Group. https://docs.vespa.ai/en/reference/query-language-reference.html#grouping- Parameters:
groupQueryStr- the group str- Returns:
- the end query
-
orderByAsc
Order by asc. https://docs.vespa.ai/en/reference/query-language-reference.html#order-by- Parameters:
annotation- the annotationfieldName- the field name- Returns:
- the end query
-
orderByAsc
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
Order by desc. https://docs.vespa.ai/en/reference/query-language-reference.html#order-by- Parameters:
annotation- the annotationfieldName- the field name- Returns:
- the end query
-
orderByDesc
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
-