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 @@ -122,9 +122,10 @@ public Field fields() {
122
122
}
123
123
124
124
/**
125
- * Set number of documents to skip before returning results.
125
+ * Set number of documents to skip before returning results. Use {@literal zero} or a {@literal negative} value to
126
+ * avoid skipping.
126
127
*
127
- * @param skip
128
+ * @param skip number of documents to skip. Use {@literal zero} or a {@literal negative} value to avoid skipping.
128
129
* @return this.
129
130
*/
130
131
public Query skip (long skip ) {
@@ -133,10 +134,10 @@ public Query skip(long skip) {
133
134
}
134
135
135
136
/**
136
- * Limit the number of returned documents to {@code limit}.
137
- * If limit chosen is 0 it returns all documents
137
+ * Limit the number of returned documents to {@code limit}. A {@literal zero} or {@literal negative} value is
138
+ * considered as unlimited.
138
139
*
139
- * @param limit
140
+ * @param limit number of documents to return. Use {@literal zero} or {@literal negative} for unlimited.
140
141
* @return this.
141
142
*/
142
143
public Query limit (int limit ) {
@@ -313,7 +314,7 @@ public boolean isSorted() {
313
314
}
314
315
315
316
/**
316
- * Get the number of documents to skip.
317
+ * Get the number of documents to skip. {@literal Zero} or a {@literal negative} value indicates no skip.
317
318
*
318
319
* @return number of documents to skip
319
320
*/
@@ -322,7 +323,8 @@ public long getSkip() {
322
323
}
323
324
324
325
/**
325
- * Get the maximum number of documents to be return.
326
+ * Get the maximum number of documents to be return. {@literal Zero} or a {@literal negative} value indicates no
327
+ * limit.
326
328
*
327
329
* @return number of documents to return.
328
330
*/
You can’t perform that action at this time.
0 commit comments