Package dev.morphia.query
Class ArraySlice
- java.lang.Object
-
- dev.morphia.query.ArraySlice
-
public class ArraySlice extends java.lang.Object
Defines array slicing options for query projections.- MongoDB documentation
- /reference/operator/projection/slice/ $slice
-
-
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.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Integer
getLimit()
java.lang.Integer
getSkip()
-
-
-
Constructor Detail
-
ArraySlice
public ArraySlice(int limit)
Specifies the number of array elements to return- Parameters:
limit
- the number of array elements to return
-
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
-
-