risingwave_storage::hummock::test_utils

Function gen_test_sstable_impl

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

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