Package dev.morphia.query
Class ArraySlice
- java.lang.Object
-
- dev.morphia.query.ArraySlice
-
public class ArraySlice extends Object
Defines array slicing options for query projections.
-
-
Constructor Summary
Constructors Constructor Description ArraySlice(int limit)
Specifies the number of array elements to returnArraySlice(int skip, int limit)
Specifies the number of array elements to skip.
-
-
-
Constructor Detail
-
ArraySlice
public ArraySlice(int limit)
Specifies the number of array elements to return- Parameters:
limit
- the number of array elements to return- MongoDB documentation
- Query Filter: $slice
-
ArraySlice
public ArraySlice(int skip, int limit)
Specifies the number of array elements to skip.- Parameters:
skip
- the number of array elements to skiplimit
- the number of array elements to return- MongoDB documentation
- Query Filter: $slice
-
-