MCPcopy Create free account
hub / github.com/bft-smart/library / update

Method update

src/main/java/bftsmart/demo/ycsb/YCSBClient.java:90–103  ·  view source on GitHub ↗
(String table, String key,
            HashMap<String, ByteIterator> values)

Source from the content-addressed store, hash-verified

88 }
89
90 @Override
91 public int update(String table, String key,
92 HashMap<String, ByteIterator> values) {
93 Iterator<String> keys = values.keySet().iterator();
94 HashMap<String, byte[]> map = new HashMap<>();
95 while (keys.hasNext()) {
96 String field = keys.next();
97 map.put(field, values.get(field).toArray());
98 }
99 YCSBMessage msg = YCSBMessage.newUpdateRequest(table, key, map);
100 byte[] reply = proxy.invokeOrdered(msg.getBytes());
101 YCSBMessage replyMsg = YCSBMessage.getObject(reply);
102 return replyMsg.getResult();
103 }
104
105}

Callers 6

SMReplyDeliverMethod · 0.45
SMReplyDeliverMethod · 0.45
ClientMethod · 0.45
executeMethod · 0.45
ClientMethod · 0.45
signMessageMethod · 0.45

Calls 8

newUpdateRequestMethod · 0.95
getBytesMethod · 0.95
getObjectMethod · 0.95
getResultMethod · 0.95
keySetMethod · 0.80
putMethod · 0.80
invokeOrderedMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected