From fe6debacc046f1ee6c6de59d17ead13e9f7d644c Mon Sep 17 00:00:00 2001 From: Chris Macklin Date: Wed, 7 Aug 2024 15:34:50 -0700 Subject: [PATCH] Make SortAndWriteHandler public. (#52) --- src/lib.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index dbb9e34f..b88cba77 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -476,7 +476,8 @@ trait BufHandler { fn process_buf(&mut self, v: &mut Vec) -> Result<(), Error>; } -struct SortAndWriteHandler +/// Provide the base implementation for sorting chunks and writing shards. +pub struct SortAndWriteHandler where T: Send + Serialize, S: SortKey, @@ -523,6 +524,7 @@ where S: SortKey, >::Key: Ord + Clone + Serialize, { + /// Create a new handler using the provided chunk size, writing to path. pub fn new>( chunk_size: usize, path: P,