KeyBuffer is the key of each record in RCFile. Its on-disk layout is as
below:
- record length in bytes,it is the sum of bytes used to store the key
part and the value part.
- Key length in bytes, it is how many bytes used by the key part.
- number_of_rows_in_this_record(vint),
- column_1_ondisk_length(vint),
- column_1_row_1_value_plain_length,
- column_1_row_2_value_plain_length,
- ....
- column_2_ondisk_length(vint),
- column_2_row_1_value_plain_length,
- column_2_row_2_value_plain_length,
- .... .
- {the end of the key part}