Package com.basho.riak.client.core.operations

Examples of com.basho.riak.client.core.operations.ListKeysOperation$Builder


    protected static void resetAndEmptyBucket(Namespace namespace) throws InterruptedException, ExecutionException
    {
        ListKeysOperation.Builder keysOpBuilder = new ListKeysOperation.Builder(namespace);
       
        ListKeysOperation keysOp = keysOpBuilder.build();
        cluster.execute(keysOp);
        List<BinaryValue> keyList = keysOp.get().getKeys();
        final int totalKeys = keyList.size();
        final Semaphore semaphore = new Semaphore(10);
        final CountDownLatch latch = new CountDownLatch(1);
       
        RiakFutureListener<Void, Location> listener = new RiakFutureListener<Void, Location>() {
View Full Code Here


    }
   
    private void testListNoKeys(String bucketType) throws InterruptedException, ExecutionException
    {
        Namespace ns = new Namespace(bucketType, bucketName.toString() + "_1");
        ListKeysOperation klistOp = new ListKeysOperation.Builder(ns).build();
        cluster.execute(klistOp);
        List<BinaryValue> kList = klistOp.get().getKeys();
        assertTrue(kList.isEmpty());
        resetAndEmptyBucket(ns);
    }
View Full Code Here

                .build();
       
        cluster.execute(storeOp);
        storeOp.get();
       
        ListKeysOperation klistOp = new ListKeysOperation.Builder(ns).build();
        cluster.execute(klistOp);
        List<BinaryValue> kList = klistOp.get().getKeys();
       
        assertEquals(kList.size(), 1);
        assertEquals(kList.get(0), key);
        resetAndEmptyBucket(ns);
View Full Code Here

                    semaphore.release();
                    received.incrementAndGet();

                    if (expected == received.intValue())
                    {
                        ListKeysOperation klistOp = new ListKeysOperation.Builder(ns).build();
                        cluster.execute(klistOp);
                        List<BinaryValue> kList;
                        kList = klistOp.get().getKeys();
                        assertEquals(kList.size(), 1000);
                        latch.countDown();
                    }
                }
                catch (InterruptedException ex)
View Full Code Here

TOP

Related Classes of com.basho.riak.client.core.operations.ListKeysOperation$Builder

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.