Creates a Paging predicate with provided page size and optional predicate and comparer.
Namespace: Hazelcast.Core
Assembly: Hazelcast.Net (in Hazelcast.Net.dll) Version: 3.8.2
Syntax
public PagingPredicate( int pageSize, IPredicate predicate = null, IComparer<KeyValuePair<Object, Object>> comparer = null )
Parameters
- pageSize
- Type: SystemInt32
page size of each result set - predicate (Optional)
- Type: Hazelcast.CoreIPredicate
Optional predicate to filter of the results. if null, no filtering applied - comparer (Optional)
- Type: System.Collections.GenericIComparerKeyValuePairObject, Object
Optional IComparer implementation used to sort the results. see warning at Comparer
Exceptions
Exception | Condition |
---|---|
ArgumentOutOfRangeException | if page size is negative |
ArgumentException | Nested PagingPredicate is not supported |
See Also