Examples of ParentPortableObject


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

        HazelcastInstance hz2 = factory.newHazelcastInstance(config);

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

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

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

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

    @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

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

        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
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.