From 1617459b013c805d146088abaf2dfe7f2f65fb95 Mon Sep 17 00:00:00 2001 From: Stu Hood Date: Wed, 28 May 2025 13:36:09 -0700 Subject: [PATCH] Expose some methods which are necessary to create a streaming version of `sorted_ords_to_term_cb`. (#43) See https://github.com/paradedb/paradedb/pull/2612. We might eventually want that function upstreamed, but there are more changes planned to it for https://github.com/paradedb/paradedb/issues/2619, so doing the expedient thing now. --- sstable/src/dictionary.rs | 2 +- sstable/src/sstable_index_v3.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sstable/src/dictionary.rs b/sstable/src/dictionary.rs index 3a99fc16c..810b2e0b6 100644 --- a/sstable/src/dictionary.rs +++ b/sstable/src/dictionary.rs @@ -151,7 +151,7 @@ impl Dictionary { } } - pub(crate) fn sstable_delta_reader_block( + pub fn sstable_delta_reader_block( &self, block_addr: BlockAddr, ) -> io::Result> { diff --git a/sstable/src/sstable_index_v3.rs b/sstable/src/sstable_index_v3.rs index 191a62b99..ab0b62378 100644 --- a/sstable/src/sstable_index_v3.rs +++ b/sstable/src/sstable_index_v3.rs @@ -58,7 +58,7 @@ impl SSTableIndex { } /// Get the [`BlockAddr`] of the block containing the `ord`-th term. - pub(crate) fn get_block_with_ord(&self, ord: TermOrdinal) -> BlockAddr { + pub fn get_block_with_ord(&self, ord: TermOrdinal) -> BlockAddr { match self { SSTableIndex::V2(v2_index) => v2_index.get_block_with_ord(ord), SSTableIndex::V3(v3_index) => v3_index.get_block_with_ord(ord),