Package com.basho.riak.pbc.RPB

Examples of com.basho.riak.pbc.RPB.RpbGetResp


    if (rep == null) {
      return NO_RIAK_OBJECTS;
    }

    RpbGetResp resp = RPB.RpbGetResp.parseFrom(rep);
    int count = resp.getContentCount();
    RiakObject[] out = new RiakObject[count];
    ByteString vclock = resp.getVclock();
    for (int i = 0; i < count; i++) {
      out[i] = new RiakObject(vclock, bucket, key, resp.getContent(i));
    }
    return out;
  }
View Full Code Here


        if (rep == null) {
            return new FetchResponse(NO_RIAK_OBJECTS, false, null);
        }

        RpbGetResp resp = RPB.RpbGetResp.parseFrom(rep);
        int count = resp.getContentCount();
        RiakObject[] out = new RiakObject[count];
        ByteString vclock = resp.getVclock();
        for (int i = 0; i < count; i++) {
            out[i] = new RiakObject(vclock, bucket, key, resp.getContent(i));
        }

        boolean unchanged = resp.getUnchanged();

        return new FetchResponse(out, unchanged, vclock.toByteArray());
  }
View Full Code Here

        if (rep == null) {
            return new FetchResponse(NO_RIAK_OBJECTS, false, null);
        }

        RpbGetResp resp = RPB.RpbGetResp.parseFrom(rep);
        int count = resp.getContentCount();
        RiakObject[] out = new RiakObject[count];
        ByteString vclock = resp.getVclock();
        for (int i = 0; i < count; i++) {
            out[i] = new RiakObject(vclock, bucket, key, resp.getContent(i));
        }

        boolean unchanged = resp.getUnchanged();

        return new FetchResponse(out, unchanged, vclock.toByteArray());
  }
View Full Code Here

    if (rep == null) {
      return NO_RIAK_OBJECTS;
    }

    RpbGetResp resp = RPB.RpbGetResp.parseFrom(rep);
    int count = resp.getContentCount();
    RiakObject[] out = new RiakObject[count];
    ByteString vclock = resp.getVclock();
    for (int i = 0; i < count; i++) {
      out[i] = new RiakObject(vclock, bucket, key, resp.getContent(i));
    }
    return out;
  }
View Full Code Here

TOP

Related Classes of com.basho.riak.pbc.RPB.RpbGetResp

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.