@@ -68,21 +68,21 @@ static QueryConverterResult select(DocumentQuery query, String bucket) {
6868 }
6969
7070 Statement statement = null ;
71- int firstResult = (int ) query .getFirstResult ();
72- int maxResult = (int ) query .getMaxResults ();
71+ int start = (int ) query .getStart ();
72+ int limit = (int ) query .getLimit ();
7373
7474 com .couchbase .client .java .query .dsl .Sort [] sorts = query .getSorts ().stream ().map (SORT_MAP ).
7575 toArray (com .couchbase .client .java .query .dsl .Sort []::new );
7676
7777 if (query .getCondition ().isPresent ()) {
7878 Expression condition = getCondition (query .getCondition ().get (), params , keys , query .getDocumentCollection ());
7979 if (nonNull (condition )) {
80- statement = create (bucket , documents , firstResult , maxResult , sorts , condition );
80+ statement = create (bucket , documents , start , limit , sorts , condition );
8181 } else {
8282 statement = null ;
8383 }
8484 } else {
85- statement = create (bucket , documents , firstResult , maxResult , sorts );
85+ statement = create (bucket , documents , start , limit , sorts );
8686 }
8787 return new QueryConverterResult (params , statement , keys );
8888 }
0 commit comments