Appends the value and qualifier to the appropriate arrays @param next_qualifier The next qualifier to append @param next_value The next value to append
(final byte[] next_qualifier, final byte[] next_value)
| 276 | * @param next_value The next value to append |
| 277 | */ |
| 278 | private void append(final byte[] next_qualifier, final byte[] next_value) { |
| 279 | ensureCapacity(next_qualifier, next_value); |
| 280 | |
| 281 | // Now let's simply concatenate all the values together. |
| 282 | System.arraycopy(next_value, 0, batched_value, value_index, next_value.length); |
| 283 | value_index += next_value.length; |
| 284 | |
| 285 | // Now let's concatenate all the qualifiers together. |
| 286 | System.arraycopy(next_qualifier, 0, batched_qualifier, qualifier_index, |
| 287 | next_qualifier.length); |
| 288 | qualifier_index += next_qualifier.length; |
| 289 | } |
| 290 | |
| 291 | @Override |
| 292 | public String metricName() { |
no test coverage detected