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

Method read

src/main/java/bftsmart/demo/ycsb/YCSBClient.java:74–82  ·  view source on GitHub ↗
(String table, String key,
            Set<String> fields, HashMap<String, ByteIterator> result)

Source from the content-addressed store, hash-verified

72 }
73
74 @Override
75 public int read(String table, String key,
76 Set<String> fields, HashMap<String, ByteIterator> result) {
77 HashMap<String, byte[]> results = new HashMap<>();
78 YCSBMessage request = YCSBMessage.newReadRequest(table, key, fields, results);
79 byte[] reply = proxy.invokeUnordered(request.getBytes());
80 YCSBMessage replyMsg = YCSBMessage.getObject(reply);
81 return replyMsg.getResult();
82 }
83
84 @Override
85 public int scan(String arg0, String arg1, int arg2, Set<String> arg3,

Callers 7

readExternalMethod · 0.80
recoverCkpHashMethod · 0.80
recoverCkpStateMethod · 0.80
recoverLogStateMethod · 0.80
runMethod · 0.80
runMethod · 0.80
readExternalMethod · 0.80

Calls 5

newReadRequestMethod · 0.95
getBytesMethod · 0.95
getObjectMethod · 0.95
getResultMethod · 0.95
invokeUnorderedMethod · 0.80

Tested by

no test coverage detected