Examples of fetchIndex()


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

        Bucket myBucket = null;
        try {
            myBucket = riakClient.fetchBucket("Grouped Statistics;" + accountName).execute();

            for (String key : myBucket.fetchIndex(BucketIndex.index).withValue("$key").execute()) {
                gsList.add(myBucket.fetch(key, BasicGroupedStatistics.class).execute());
            }
        } catch (RiakRetryFailedException rrfe) {
            rrfe.printStackTrace();
        } catch (RiakException e) {
View Full Code Here

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

   
    Bucket bucket = null;
    try {
      bucket = riakClient.fetchBucket(bucketName).execute();
     
      for (String key : bucket.fetchIndex(BucketIndex.index).withValue("$key").execute()) {
        resultList.add(bucket.fetch(key, clazz).execute());
      }
    } catch (RiakRetryFailedException rrfe) {
            rrfe.printStackTrace();
        } catch (RiakException e) {
View Full Code Here

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

        Bucket myBucket = null;
        try {
            myBucket = riakClient.fetchBucket("Alert;" + accountName).execute();

            for (String key : myBucket.fetchIndex(BucketIndex.index).withValue("$key").execute()) {
                alertList.add(myBucket.fetch(key, BasicAlert.class).execute());
            }
        } catch (RiakRetryFailedException rrfe) {
            rrfe.printStackTrace();
        } catch (RiakException e) {
View Full Code Here

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

        Bucket myBucket = null;
        try {
            myBucket = riakClient.fetchBucket("Account").execute();

            for (String key : myBucket.fetchIndex(BucketIndex.index).withValue("$key").execute()) {
              accountList.add(myBucket.fetch(key, BasicAccount.class).execute());
            }
        } catch (RiakRetryFailedException rrfe) {
            rrfe.printStackTrace();
        } catch (RiakException e) {
View Full Code Here

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

    List<User> userList = new ArrayList<>();
   
    Bucket myBucket = null;
        try {
            myBucket = riakClient.fetchBucket("User;" + this.encodeUri(username)).execute();
            for (String key : myBucket.fetchIndex(BucketIndex.index).withValue("$key").execute()) {
              userList.add(myBucket.fetch(key, BasicUser.class).execute());
            }
        } catch (RiakRetryFailedException rrfe) {
            rrfe.printStackTrace();
        } catch (RiakException e) {
View Full Code Here

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

        Bucket myBucket = null;
        try {
            myBucket = riakClient.fetchBucket("Statistics;" + accountName).execute();

            for (String key : myBucket.fetchIndex(BucketIndex.index).withValue("$key").execute()) {
              statList.add(myBucket.fetch(key, BasicStatistics.class).execute());
            }
        } catch (RiakRetryFailedException rrfe) {
            rrfe.printStackTrace();
        } catch (RiakException e) {
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.