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)
| 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) { |
no test coverage detected