Examples of PortableCollection


Examples of com.hazelcast.spi.impl.PortableCollection

        Collection<Data> coll = createCollection(objects.size());
        for (Object object : objects) {
            final Data data = toData(object);
            coll.add(data);
        }
        return new PortableCollection(coll);
    }
View Full Code Here

Examples of com.hazelcast.spi.impl.PortableCollection

            Collection<Data> coll = response.getCollection();
            if (coll != null){
                keySet.addAll(coll);
            }
        }
        return new PortableCollection(keySet);
    }
View Full Code Here

Examples of com.hazelcast.spi.impl.PortableCollection

    }

    public Collection<V> get(K key) {
        Data keyData = toData(key);
        GetAllRequest request = new GetAllRequest(name, keyData);
        PortableCollection result = invoke(request, keyData);
        return toObjectCollection(result, true);
    }
View Full Code Here

Examples of com.hazelcast.spi.impl.PortableCollection

    }

    public Collection<V> remove(Object key) {
        Data keyData = toData(key);
        RemoveAllRequest request = new RemoveAllRequest(name, keyData, ThreadUtil.getThreadId());
        PortableCollection result = invoke(request, keyData);
        return toObjectCollection(result, true);
    }
View Full Code Here

Examples of com.hazelcast.spi.impl.PortableCollection

        throw new UnsupportedOperationException("Locality for client is ambiguous");
    }

    public Set<K> keySet() {
        KeySetRequest request = new KeySetRequest(name);
        PortableCollection result = invoke(request);
        return (Set)toObjectCollection(result, false);
    }
View Full Code Here

Examples of com.hazelcast.spi.impl.PortableCollection

        return (Set)toObjectCollection(result, false);
    }

    public Collection<V> values() {
        ValuesRequest request = new ValuesRequest(name);
        PortableCollection result = invoke(request);
        return toObjectCollection(result, true);
    }
View Full Code Here

Examples of com.hazelcast.spi.impl.PortableCollection

    protected Object filter(Object response) {
        if (response instanceof MultiMapResponse){
            Collection<MultiMapRecord> coll = ((MultiMapResponse) response).getCollection();
            if (coll == null){
                return new PortableCollection();
            }
            Collection<Data> collection = new ArrayList<Data>(coll.size());
            for (MultiMapRecord record: coll){
                collection.add(getClientEngine().toData(record.getObject()));
            }
            return new PortableCollection(collection);
        }
        return super.filter(response);
    }
View Full Code Here

Examples of com.hazelcast.spi.impl.PortableCollection

    protected Object filter(Object response) {
        if (response instanceof MultiMapResponse){
            Collection<MultiMapRecord> coll = ((MultiMapResponse) response).getCollection();
            if (coll == null){
                return new PortableCollection();
            }
            Collection<Data> collection = new ArrayList<Data>(coll.size());
            for (MultiMapRecord record: coll){
                collection.add(getClientEngine().toData(record.getObject()));
            }
            return new PortableCollection(collection);
        }
        return super.filter(response);
    }
View Full Code Here

Examples of com.hazelcast.spi.impl.PortableCollection

    protected Object filter(Object response) {
        if (response instanceof MultiMapResponse) {
            Collection<MultiMapRecord> coll = ((MultiMapResponse) response).getCollection();
            if (coll == null) {
                return new PortableCollection();
            }
            Collection<Data> collection = new ArrayList<Data>(coll.size());
            for (MultiMapRecord record : coll) {
                collection.add(serializationService.toData(record.getObject()));
            }
            return new PortableCollection(collection);
        }
        return super.filter(response);
    }
View Full Code Here

Examples of com.hazelcast.spi.impl.PortableCollection

            }
            for (MultiMapRecord record : coll) {
                list.add(serializationService.toData(record.getObject()));
            }
        }
        return new PortableCollection(list);
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.