Package com.hazelcast.nio.serialization.PortableTest

Examples of com.hazelcast.nio.serialization.PortableTest.ChildPortableObject


        HazelcastInstance hz1 = factory.newHazelcastInstance();
        HazelcastInstance hz2 = factory.newHazelcastInstance();

        IMap<Object, Object> map = hz2.getMap(randomMapName());

        Object key = new ChildPortableObject(123L);
        Object value = "value";
        map.put(key, value);

        Collection<Object> values = map.values(new SqlPredicate("__key.timestamp = 123"));
        assertEquals(1, values.size());
View Full Code Here


    @Test(expected = QueryException.class)
    public void testQueryPortableField() {
        HazelcastInstance hz = createHazelcastInstance();
        IMap<Object, Object> map = hz.getMap(randomMapName());

        map.put(1, new GrandParentPortableObject(1, new ParentPortableObject(1L, new ChildPortableObject(1L))));
        Collection<Object> values = map.values(new SqlPredicate("child > 0"));
        values.size();
    }
View Full Code Here

        HazelcastInstance hz2 = factory.newHazelcastInstance(config);

        IMap<Object, Object> map = hz2.getMap(name);

        Object key = generateKeyOwnedBy(hz1);
        map.put(key, new GrandParentPortableObject(1, new ParentPortableObject(1L, new ChildPortableObject(1L))));

        Collection<Object> values = map.values(new SqlPredicate("child.timestamp > 0"));
        assertEquals(1, values.size());

        values = map.values(new SqlPredicate("child.child.timestamp > 0"));
View Full Code Here

TOP

Related Classes of com.hazelcast.nio.serialization.PortableTest.ChildPortableObject

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.