risingwave_storage::hummock::test_utils

Function gen_test_sstable

source
pub async fn gen_test_sstable<B: AsRef<[u8]> + Clone + Default + Eq>(
    opts: SstableBuilderOptions,
    object_id: HummockSstableObjectId,
    kv_iter: impl Iterator<Item = (FullKey<B>, HummockValue<B>)>,
    sstable_store: SstableStoreRef,
) -> TableHolder
Expand description

Generate a test table from the given kv_iter and put the kv value to sstable_store