Examples of ExampleShardedObject


Examples of de.zalando.sprocwrapper.example.ExampleShardedObject

        Assert.assertEquals("shard1row1e", results.get(0));
        Assert.assertEquals("shard1row2e", results.get(1));
        Assert.assertEquals("shard2row1a", results.get(2));
        Assert.assertEquals("shard2row2a", results.get(3));

        final List<ExampleShardedObject> objectKeys = Lists.newArrayList(new ExampleShardedObject("a", "b"),
                new ExampleShardedObject("c", "d"), new ExampleShardedObject("e", "f"));
        results = exampleBitmapShardSProcService.collectDataUsingAutoPartition2(objectKeys, 3);
        Assert.assertEquals(2, results.size());
        Assert.assertEquals("shard1row1ef3", results.get(0));
        Assert.assertEquals("shard2row1ab3", results.get(1));
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.