Adds a new block to a SparseData * The function appendBinaryStringInfo always make sure to attach a trailing '\0' * to the data array of the vals StringInfo. */
| 75 | * to the data array of the vals StringInfo. |
| 76 | */ |
| 77 | void add_run_to_sdata(char *run_val, int64 run_len, size_t width, |
| 78 | SparseData sdata) |
| 79 | { |
| 80 | StringInfo index = sdata->index; |
| 81 | StringInfo vals = sdata->vals; |
| 82 | |
| 83 | appendBinaryStringInfo(vals,run_val,width); |
| 84 | append_to_rle_index(index, run_len); |
| 85 | sdata->unique_value_count++; |
| 86 | sdata->total_value_count+=run_len; |
| 87 | } |
| 88 | |
| 89 | /*------------------------------------------------------------------------------ |
| 90 | * Each integer count in the RLE index is stored in a number of bytes determined |
no test coverage detected