Examples of RpbPair


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

    if (content.getUsermetaCount() == 0) {
      userMeta = Collections.emptyMap();
    } else {
      userMeta = new LinkedHashMap<String, String>();
      for (int i = 0; i < content.getUsermetaCount(); i++) {
        RpbPair um = content.getUsermeta(i);
        userMeta.put(um.getKey().toStringUtf8(),
               str(um.getValue()));
      }
    }
  }
View Full Code Here

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

    }

    if (content.getUsermetaCount() > 0) {
      Map<String, String> tmpUserMetaData = new LinkedHashMap<String, String>();
      for (int i = 0; i < content.getUsermetaCount(); i++) {
        RpbPair um = content.getUsermeta(i);
        tmpUserMetaData.put(um.getKey().toStringUtf8(),
               str(um.getValue()));
      }

      synchronized (userMetaDataLock) {
          userMetaData.putAll(tmpUserMetaData);
            }
View Full Code Here

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

    }

    if (content.getUsermetaCount() > 0) {
      Map<String, String> tmpUserMetaData = new LinkedHashMap<String, String>();
      for (int i = 0; i < content.getUsermetaCount(); i++) {
        RpbPair um = content.getUsermeta(i);
        tmpUserMetaData.put(um.getKey().toStringUtf8(),
               str(um.getValue()));
      }

      synchronized (userMetaDataLock) {
          userMetaData.putAll(tmpUserMetaData);
            }
View Full Code Here

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

    if (content.getUsermetaCount() == 0) {
      userMeta = Collections.emptyMap();
    } else {
      userMeta = new HashMap<String, String>();
      for (int i = 0; i < content.getUsermetaCount(); i++) {
        RpbPair um = content.getUsermeta(i);
        userMeta.put(um.getKey().toStringUtf8(),
               str(um.getValue()));
      }
    }
  }
View Full Code Here

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

    }

    if (content.getUsermetaCount() > 0) {
      Map<String, String> tmpUserMetaData = new LinkedHashMap<String, String>();
      for (int i = 0; i < content.getUsermetaCount(); i++) {
        RpbPair um = content.getUsermeta(i);
        tmpUserMetaData.put(um.getKey().toStringUtf8(),
               str(um.getValue()));
      }

      synchronized (userMetaDataLock) {
          userMetaData.putAll(tmpUserMetaData);
            }
View Full Code Here

Examples of com.basho.riak.protobuf.RiakPB.RpbPair

    }

    if (content.getUsermetaCount() > 0) {
      Map<String, String> tmpUserMetaData = new LinkedHashMap<String, String>();
      for (int i = 0; i < content.getUsermetaCount(); i++) {
        RpbPair um = content.getUsermeta(i);
        tmpUserMetaData.put(um.getKey().toStringUtf8(),
               str(um.getValue()));
      }

      synchronized (userMetaDataLock) {
          userMetaData.putAll(tmpUserMetaData);
            }
View Full Code Here

Examples of com.basho.riak.protobuf.RiakPB.RpbPair

    }

    if (content.getUsermetaCount() > 0) {
      Map<String, String> tmpUserMetaData = new LinkedHashMap<String, String>();
      for (int i = 0; i < content.getUsermetaCount(); i++) {
        RpbPair um = content.getUsermeta(i);
        tmpUserMetaData.put(um.getKey().toStringUtf8(),
               str(um.getValue()));
      }

      synchronized (userMetaDataLock) {
          userMetaData.putAll(tmpUserMetaData);
            }
View Full Code Here

Examples of com.basho.riak.protobuf.RiakPB.RpbPair

             * Unfortunately Riak ignores return_terms if it's not a range
             * query, resulting in this hack
             */
            if (request.isRangeQuery())
            {
                RpbPair pair = pbResponse.getResults(index++);
                return new IndexEntry(pair.getKey(), pair.getValue());
            }
            else
            {
                return new IndexEntry(ByteString.copyFromUtf8(request.getIndexKey()), pbResponse.getKeys(index++));
            }
View Full Code Here

Examples of com.basho.riak.protobuf.RiakPB.RpbPair

    }

    if (content.getUsermetaCount() > 0) {
      Map<String, String> tmpUserMetaData = new LinkedHashMap<String, String>();
      for (int i = 0; i < content.getUsermetaCount(); i++) {
        RpbPair um = content.getUsermeta(i);
        tmpUserMetaData.put(um.getKey().toStringUtf8(),
               str(um.getValue()));
      }

      synchronized (userMetaDataLock) {
          userMetaData.putAll(tmpUserMetaData);
            }
View Full Code Here

Examples of com.trifork.riak.RPB.RpbPair

    if (content.getUsermetaCount() == 0) {
      userMeta = Collections.emptyMap();
    } else {
      userMeta = new HashMap<String, String>();
      for (int i = 0; i < content.getUsermetaCount(); i++) {
        RpbPair um = content.getUsermeta(i);
        userMeta.put(um.getKey().toStringUtf8(),
               str(um.getValue()));
      }
    }
  }
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.