Package info.archinnov.achilles.test.integration.entity

Examples of info.archinnov.achilles.test.integration.entity.ClusteredEntityWithPrimitiveAndSubTypes$ClusteredKey


        //Given
        final Long partition = RandomUtils.nextLong(0,Long.MAX_VALUE);
        final int bucket1 = 1, bucket2 = 2;
        final Date date1 = new Date(100000), date2 = new Date(200000);

        manager.insert(new ClusteredEntityWithPrimitiveAndSubTypes(partition, bucket1, date1.toString()));
        manager.insert(new ClusteredEntityWithPrimitiveAndSubTypes(partition, bucket1, date2.toString()));
        manager.insert(new ClusteredEntityWithPrimitiveAndSubTypes(partition, bucket2, date1.toString()));
        manager.insert(new ClusteredEntityWithPrimitiveAndSubTypes(partition, bucket2, date2.toString()));

        //When
        final List<ClusteredEntityWithPrimitiveAndSubTypes> result = manager.sliceQuery(ClusteredEntityWithPrimitiveAndSubTypes.class)
                .forSelect()
                .withPartitionComponents(partition)
View Full Code Here


        final Date date2 = new Date(200000);
        final Date date3 = new Date(300000);
        final Date date4 = new Date(400000);
        final Date date5 = new Date(500000);

        manager.insert(new ClusteredEntityWithPrimitiveAndSubTypes(partition, bucket, date1.toString()));
        manager.insert(new ClusteredEntityWithPrimitiveAndSubTypes(partition, bucket, date2.toString()));
        manager.insert(new ClusteredEntityWithPrimitiveAndSubTypes(partition, bucket, date3.toString()));
        manager.insert(new ClusteredEntityWithPrimitiveAndSubTypes(partition, bucket, date4.toString()));
        manager.insert(new ClusteredEntityWithPrimitiveAndSubTypes(partition, bucket, date5.toString()));

        //When
        final List<ClusteredEntityWithPrimitiveAndSubTypes> result = manager.sliceQuery(ClusteredEntityWithPrimitiveAndSubTypes.class)
                .forSelect()
                .withPartitionComponents(partition, bucket)
View Full Code Here

TOP

Related Classes of info.archinnov.achilles.test.integration.entity.ClusteredEntityWithPrimitiveAndSubTypes$ClusteredKey

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.