use of com.hazelcast.query.impl.predicates.PartitionPredicateImpl in project hazelcast by hazelcast.
the class PagingPredicateHolder method asPredicate.
public <K, V> Predicate<K, V> asPredicate(SerializationService serializationService) {
List<Map.Entry<Integer, Map.Entry<K, V>>> anchorList = anchorDataListHolder.asAnchorList(serializationService);
Predicate predicate = serializationService.toObject(predicateData);
Comparator comparator = serializationService.toObject(comparatorData);
IterationType iterationType = IterationType.getById(iterationTypeId);
PagingPredicateImpl<K, V> pagingPredicate = new PagingPredicateImpl<K, V>(anchorList, predicate, comparator, pageSize, page, iterationType);
if (partitionKeyData == null) {
return pagingPredicate;
}
return new PartitionPredicateImpl<>(serializationService.toObject(partitionKeyData), pagingPredicate);
}
Aggregations