Class ArrayOperators.Slice.SliceElementsBuilder
java.lang.Object
org.springframework.data.mongodb.core.aggregation.ArrayOperators.Slice.SliceElementsBuilder
- Enclosing class:
- ArrayOperators.Slice
- Author:
- Christoph Strobl
-
Method Summary
Modifier and TypeMethodDescriptionitemCount
(int count) Set the number of elements given count.itemCount
(AggregationExpression count) Slice the number of elements.
-
Method Details
-
itemCount
Set the number of elements given count.- Parameters:
count
- number of elements to slice.- Returns:
- new instance of
ArrayOperators.Slice
.
-
itemCount
Slice the number of elements.- Parameters:
count
- anAggregationExpression
that evaluates to a numeric value used as number of elements to slice.- Returns:
- new instance of
ArrayOperators.Slice
. - Since:
- 4.5
-