if (predicate == null) {
throw new NullPointerException("Predicate should not be null!");
}
final TxnMapRequest request = new TxnMapRequest(getName(),
TxnMapRequest.TxnMapRequestType.VALUES_BY_PREDICATE, predicate);
final MapValueCollection result = invoke(request);
final Collection<Data> dataValues = result.getValues();
final HashSet<V> values = new HashSet<V>(dataValues.size());
for (Data value : dataValues) {
values.add((V) toObject(value));
}
return values;