ByteString key = ByteString.copyFromUtf8(ent.getKey());
com.basho.riak.pbc.RPB.RpbPair.Builder pb = RPB.RpbPair.newBuilder().setKey(key);
if (ent.getValue() != null) {
pb.setValue(ByteString.copyFromUtf8(ent.getValue()));
}
b.addUsermeta(pb);
}
}
synchronized (indexLock) {
for (@SuppressWarnings("rawtypes") RiakIndex i : indexes) {