Package com.basho.riak.client.bucket

Examples of com.basho.riak.client.bucket.Bucket.keys()


            for (int index = fromHoursSince1970.intValue(); index <= toHoursSince1970.intValue(); index++) {
                int keys = 0;
                Bucket hourBucket = riakClient.fetchBucket(accountName + ";" + index).execute();
                try {
                    for (String key : hourBucket.keys()) {
                        hourBucket.delete(key);
                        keys++;
                    }
                } catch (RiakException e) {
                    e.printStackTrace()//To change body of catch statement use File | Settings | File Templates.
View Full Code Here


                        throws ReceiverThrowableType, IOException
                    {
                        try
                        {
                            final Bucket bucket = riakClient.fetchBucket( bucketKey ).execute();
                            for( String key : bucket.keys() )
                            {
                                String jsonState = bucket.fetch( key ).execute().getValueAsString();
                                receiver.receive( new StringReader( jsonState ) );
                            }
                        }
View Full Code Here

    public void tearDown()
        throws Exception
    {
        // Riak don't expose bucket deletion in its API so we empty the Qi4j Entities bucket.
        Bucket bucket = riakClient.fetchBucket( bucketKey ).execute();
        for( String key : bucket.keys() )
        {
            bucket.delete( key ).execute();
        }
        super.tearDown();
    }
View Full Code Here

    public void tearDown()
        throws Exception
    {
        // Riak don't expose bucket deletion in its API so we empty the Qi4j Entities bucket.
        Bucket bucket = riakClient.fetchBucket( bucketKey ).execute();
        for( String key : bucket.keys() )
        {
            bucket.delete( key ).execute();
        }
        super.tearDown();
    }
View Full Code Here

        }

        List<BucketKey> keys = new ArrayList<BucketKey>();
        Bucket b = client.fetchBucket(bucket).execute();

        for (String key : b.keys()) {
            keys.add(new BucketKey(bucket, key));

        }
        return keys;
    }
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.