|
|
|
@ -122,9 +122,10 @@ public class Query { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* Set number of documents to skip before returning results. |
|
|
|
* Set number of documents to skip before returning results. Use {@literal zero} or a {@literal negative} value to |
|
|
|
|
|
|
|
* avoid skipping. |
|
|
|
* |
|
|
|
* |
|
|
|
* @param skip |
|
|
|
* @param skip number of documents to skip. Use {@literal zero} or a {@literal negative} value to avoid skipping. |
|
|
|
* @return this. |
|
|
|
* @return this. |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
public Query skip(long skip) { |
|
|
|
public Query skip(long skip) { |
|
|
|
@ -133,10 +134,10 @@ public class Query { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* Limit the number of returned documents to {@code limit}. |
|
|
|
* Limit the number of returned documents to {@code limit}. A {@literal zero} or {@literal negative} value is |
|
|
|
* If limit chosen is 0 it returns all documents |
|
|
|
* considered as unlimited. |
|
|
|
* |
|
|
|
* |
|
|
|
* @param limit |
|
|
|
* @param limit number of documents to return. Use {@literal zero} or {@literal negative} for unlimited. |
|
|
|
* @return this. |
|
|
|
* @return this. |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
public Query limit(int limit) { |
|
|
|
public Query limit(int limit) { |
|
|
|
@ -313,7 +314,7 @@ public class Query { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* Get the number of documents to skip. |
|
|
|
* Get the number of documents to skip. {@literal Zero} or a {@literal negative} value indicates no skip. |
|
|
|
* |
|
|
|
* |
|
|
|
* @return number of documents to skip |
|
|
|
* @return number of documents to skip |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
@ -322,7 +323,8 @@ public class Query { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* Get the maximum number of documents to be return. |
|
|
|
* Get the maximum number of documents to be return. {@literal Zero} or a {@literal negative} value indicates no |
|
|
|
|
|
|
|
* limit. |
|
|
|
* |
|
|
|
* |
|
|
|
* @return number of documents to return. |
|
|
|
* @return number of documents to return. |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
|