Mercurial > lbo > hg > sstable
changeset 22:620ac9082634
Add deprecation notice; -> 0.3.2
author | Lewin Bormann <lbo@spheniscida.de> |
---|---|
date | Mon, 02 Jan 2017 12:53:29 +0100 |
parents | be776a25b5e4 |
children | 04468480cdcf |
files | src/table_builder.rs |
diffstat | 1 files changed, 4 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/src/table_builder.rs Sat Dec 24 14:51:24 2016 +0000 +++ b/src/table_builder.rs Mon Jan 02 12:53:29 2017 +0100 @@ -85,8 +85,9 @@ /// /// DATA BLOCKs, INDEX BLOCKs, and BLOCKs are built using the code in the `block` module. /// -/// DATA BLOCKs contain the actual data; INDEX BLOCKS contain one entry per block, where the key is -/// a string after the last key of a block, and the value is a encoded BlockHandle pointing to that +/// DATA BLOCKs contain the actual data, and a footer of [4B crc32; 1B compression]; +/// INDEX BLOCKS contain one entry per block, where the key is a string after the +/// last key of a block, and the value is a encoded BlockHandle pointing to that /// block. /// /// The footer is a pointer pointing to the index block, padding to fill up to 40 B and at the end @@ -159,7 +160,7 @@ } /// Writes an index entry for the current data_block where `next_key` is the first key of the - /// next block. + /// next block. Then, write the actual block to disk. fn write_data_block(&mut self, next_key: &[u8]) { assert!(self.data_block.is_some());