Examples of RpbPutResp


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

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

      RpbPutResp resp = RPB.RpbPutResp.parseFrom(r);

      RiakObject[] res = new RiakObject[resp.getContentsCount()];
      ByteString vclock = resp.getVclock();

      for (int i = 0; i < res.length; i++) {
        res[i] = new RiakObject(vclock, value.getBucketBS(), value
            .getKeyBS(), resp.getContents(i));
      }

      return res;
    } finally {
      release(c);
View Full Code Here

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

      try {
        for (int i = 0; i < vclocks.length; i++) {
          byte[] data = c.receive(MSG_PutResp);
          if (data != null) {
            RpbPutResp resp = RPB.RpbPutResp.parseFrom(data);
            if (resp.hasVclock()) {
              vclocks[i] = resp.getVclock();
            }
          }
        }
      } catch (IOException e) {
        // TODO
View Full Code Here

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

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

      RpbPutResp resp = RPB.RpbPutResp.parseFrom(r);

      RiakObject[] res = new RiakObject[resp.getContentCount()];
      ByteString vclock = resp.getVclock();

      for (int i = 0; i < res.length; i++) {
        res[i] = new RiakObject(vclock, value.getBucketBS(), value
            .getKeyBS(), resp.getContent(i));
      }

      return res;
    } finally {
      release(c);
View Full Code Here

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

      try {
        for (int i = 0; i < vclocks.length; i++) {
          byte[] data = c.receive(MSG_PutResp);
          if (data != null) {
            RpbPutResp resp = RPB.RpbPutResp.parseFrom(data);
            if (resp.hasVclock()) {
              vclocks[i] = resp.getVclock();
            }
          }
        }
      } catch (IOException e) {
        // TODO at least log it
View Full Code Here

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

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

      RpbPutResp resp = RPB.RpbPutResp.parseFrom(r);

      RiakObject[] res = new RiakObject[resp.getContentCount()];
      ByteString vclock = resp.getVclock();

      for (int i = 0; i < res.length; i++) {
        res[i] = new RiakObject(vclock, value.getBucketBS(), value
            .getKeyBS(), resp.getContent(i));
      }

      return res;
    } finally {
      release(c);
View Full Code Here

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

      try {
        for (int i = 0; i < vclocks.length; i++) {
          byte[] data = c.receive(MSG_PutResp);
          if (data != null) {
            RpbPutResp resp = RPB.RpbPutResp.parseFrom(data);
            if (resp.hasVclock()) {
              vclocks[i] = resp.getVclock();
            }
          }
        }
      } catch (IOException e) {
        // TODO at least log it
View Full Code Here

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

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

      RpbPutResp resp = RPB.RpbPutResp.parseFrom(r);

      RiakObject[] res = new RiakObject[resp.getContentsCount()];
      ByteString vclock = resp.getVclock();

      for (int i = 0; i < res.length; i++) {
        res[i] = new RiakObject(vclock, value.getBucketBS(), value
            .getKeyBS(), resp.getContents(i));
      }

      return res;
    } finally {
      release(c);
View Full Code Here

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

      try {
        for (int i = 0; i < vclocks.length; i++) {
          byte[] data = c.receive(MSG_PutResp);
          if (data != null) {
            RpbPutResp resp = RPB.RpbPutResp.parseFrom(data);
            if (resp.hasVclock()) {
              vclocks[i] = resp.getVclock();
            }
          }
        }
      } catch (IOException e) {
        // TODO
View Full Code Here

Examples of com.basho.riak.protobuf.RiakKvPB.RpbPutResp

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

      RpbPutResp resp = RiakKvPB.RpbPutResp.parseFrom(r);

      RiakObject[] res = new RiakObject[resp.getContentCount()];
      ByteString vclock = resp.getVclock();

      // The key parameter will be set only if the server generated a
      // key for the object so we check and set it accordingly
      for (int i = 0; i < res.length; i++) {
        res[i] = new RiakObject(vclock, value.getBucketBS(),
                    (resp.hasKey()) ? resp.getKey() : value.getKeyBS(),
                    resp.getContent(i));
      }

      return res;
    } finally {
      release(c);
View Full Code Here

Examples of com.basho.riak.protobuf.RiakKvPB.RpbPutResp

      try {
        for (int i = 0; i < vclocks.length; i++) {
          byte[] data = c.receive(MSG_PutResp);
          if (data != null) {
            RpbPutResp resp = RiakKvPB.RpbPutResp.parseFrom(data);
            if (resp.hasVclock()) {
              vclocks[i] = resp.getVclock();
            }
          }
        }
      } catch (IOException e) {
        // TODO at least log it
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.