Package com.hazelcast.map

Examples of com.hazelcast.map.MapValueCollection


        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;
View Full Code Here


    }

    @Override
    public Collection<V> values() {
        MapValuesRequest request = new MapValuesRequest(name);
        MapValueCollection mapValueCollection = invoke(request);
        Collection<Data> collectionData = mapValueCollection.getValues();
        Collection<V> collection = new ArrayList<V>(collectionData.size());
        for (Data data : collectionData) {
            final V value = toObject(data);
            collection.add(value);
        }
View Full Code Here

TOP

Related Classes of com.hazelcast.map.MapValueCollection

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.