limit method

void limit (
  1. int limit
)

Configure a limit for this query.

All methods that support limit will return/process only the given number of Objects. Example use case: use together with offset to get a slice of the whole result, e.g. for "result paging".

Call with limit=0 to reset to the default behavior - zero limit means no limit applied.

Implementation

void limit(int limit) {
  checkObx(bindings.obx_query_limit(_cQuery, limit));
}