risingwave_storage::hummock::test_utils

Function gen_test_sstable_info

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

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