Struct sstable::table_builder::TableBuilder [] [src]

pub struct TableBuilder<'a, Dst: Write> { /* fields omitted */ }

A table consists of DATA BLOCKs, META BLOCKs, a METAINDEX BLOCK, an INDEX BLOCK and a FOOTER.

DATA BLOCKs, META BLOCKs, INDEX BLOCK and METAINDEX BLOCK are built using the code in the block module.

The FOOTER consists of a BlockHandle wthat points to the metaindex block, another pointing to the index block, padding to fill up to 40 B and at the end the 8B magic number 0xdb4775248b80fb57.

Methods

impl<'a, Dst: Write> TableBuilder<'a, Dst>
[src]

impl<'a, Dst: Write> TableBuilder<'a, Dst>
[src]

TableBuilder is used for building a new SSTable. It groups entries into blocks, calculating checksums and bloom filters.

Create a new TableBuilder. Currently the best choice for fpol is NoFilterPolicy (mod filter; or use new_no_filter())

Add a key to the table. The key as to be lexically greater or equal to the last one added.