MCPcopy Create free account
hub / github.com/OpenTSDB/asynchbase / kvsToROE

Method kvsToROE

test/PBufResponses.java:176–183  ·  view source on GitHub ↗

Convert the list of columns to a result set for a multi-action batched RPC @param kvs The list of columns to encode @param i The index of the parent RPC in the multi-action batch @return The result

(final List<KeyValue> kvs, final int i)

Source from the content-addressed store, hash-verified

174 * @return The result
175 */
176 static ResultOrException kvsToROE(final List<KeyValue> kvs, final int i) {
177 final Result.Builder result = Result.newBuilder();
178 for (final KeyValue kv : kvs) {
179 result.addCell(kvToCell(kv));
180 }
181 return ResultOrException.newBuilder()
182 .setResult(result).setIndex(i).build();
183 }
184
185 static ResultOrException generateAssociatedROE(final int associated_cell_cnt,
186 final int result_index) {

Calls 1

kvToCellMethod · 0.95

Tested by

no test coverage detected