Package dev.morphia.query
Class ArraySlice
- java.lang.Object
-
- dev.morphia.query.ArraySlice
-
public class ArraySlice extends java.lang.ObjectDefines 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.IntegergetLimit()java.lang.IntegergetSkip()
-
-
-
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
-
-