File tree 1 file changed +9
-7
lines changed
spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/query
1 file changed +9
-7
lines changed Original file line number Diff line number Diff line change @@ -124,9 +124,10 @@ public Field fields() {
124
124
}
125
125
126
126
/**
127
- * Set number of documents to skip before returning results.
127
+ * Set number of documents to skip before returning results. Use {@literal zero} or a {@literal negative} value to
128
+ * avoid skipping.
128
129
*
129
- * @param skip
130
+ * @param skip number of documents to skip. Use {@literal zero} or a {@literal negative} value to avoid skipping.
130
131
* @return this.
131
132
*/
132
133
public Query skip (long skip ) {
@@ -135,10 +136,10 @@ public Query skip(long skip) {
135
136
}
136
137
137
138
/**
138
- * Limit the number of returned documents to {@code limit}.
139
- * If limit chosen is 0 it returns all documents
139
+ * Limit the number of returned documents to {@code limit}. A {@literal zero} or {@literal negative} value is
140
+ * considered as unlimited.
140
141
*
141
- * @param limit
142
+ * @param limit number of documents to return. Use {@literal zero} or {@literal negative} for unlimited.
142
143
* @return this.
143
144
*/
144
145
public Query limit (int limit ) {
@@ -315,7 +316,7 @@ public boolean isSorted() {
315
316
}
316
317
317
318
/**
318
- * Get the number of documents to skip.
319
+ * Get the number of documents to skip. {@literal Zero} or a {@literal negative} value indicates no skip.
319
320
*
320
321
* @return number of documents to skip
321
322
*/
@@ -324,7 +325,8 @@ public long getSkip() {
324
325
}
325
326
326
327
/**
327
- * Get the maximum number of documents to be return.
328
+ * Get the maximum number of documents to be return. {@literal Zero} or a {@literal negative} value indicates no
329
+ * limit.
328
330
*
329
331
* @return number of documents to return.
330
332
*/
You can’t perform that action at this time.
0 commit comments