Package com.basho.riak.pbc.RPB

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


      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

      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

      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

      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

      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

      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

      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

TOP

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

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.