Skip to content

Latest commit

 

History

History
21 lines (19 loc) · 1.59 KB

temp-file-format.md

File metadata and controls

21 lines (19 loc) · 1.59 KB

Format of temp files

Sorted temp files will be written in a binary format following the structure described below.

+-----------------------------------------------+-------------------------------------------------+
|                                               |                                                 |
|                                               |                                                 |
|                 Block Size (Int32)            |              Block Count (Int 32)               |
|                                               |                                                 |
|                                               |                                                 |
+-----+------------+-----+----------+-----------+-------------------------------+-----+-----------+
|     |            |     |          |                                           |     |           |
|     |            |     |          |                                           |     |           |
| Size|  SortKey 1 | Size| SortKey 2|       .......                  SortKey n  |Size | Payload   |
| SK_1|            | SK_2|          |                                           |     |           |
|     |            |     |          |                                           |Pay  |           |
|     |            |     |          |                                           |Load |           |
|     |            |     |          |                                           |     |           |
+-----+------------+-----+----------+-------------------------------------------+-----+-----------+