Skip to main content

Module table_properties

Module table_properties 

Source
Expand description

Read only properties of a single SST file.

TableProperties is the wrapper over RocksDB’s TableProperties: the sizes, counts, and names recorded when the file was written, plus anything a TablePropertiesCollector added on top.

You never build or own one of these. RocksDB hands out a borrowed pointer from a flush job info, a compaction job info, or an external file ingestion info, and the properties stay alive only as long as that event object does. The 'a lifetime ties the wrapper and every byte slice it hands back to that borrow, so nothing here outlives the callback it came from.

String-like getters return raw bytes rather than str. RocksDB does not guarantee UTF-8 for user collected properties, and the built in names are only ASCII by convention. The slices point straight into the C++ strings, so reading them copies and allocates nothing.

Structs§

TableProperties
Properties of one SST file, borrowed from the event that produced it.