From ca53f5384f702147dcb11d228f6a94f24f14f4a6 Mon Sep 17 00:00:00 2001 From: Chris Macklin Date: Wed, 7 Aug 2024 15:28:39 -0700 Subject: [PATCH 1/3] Make SortAndWriteHandler public. --- src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index dbb9e34f..20e617b8 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -476,7 +476,7 @@ trait BufHandler { fn process_buf(&mut self, v: &mut Vec) -> Result<(), Error>; } -struct SortAndWriteHandler +pub struct SortAndWriteHandler where T: Send + Serialize, S: SortKey, From 4e83a03554db63488063e3939ad107d0c648993e Mon Sep 17 00:00:00 2001 From: Chris Macklin Date: Wed, 7 Aug 2024 15:29:32 -0700 Subject: [PATCH 2/3] Add docstring. --- src/lib.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/lib.rs b/src/lib.rs index 20e617b8..07770a23 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -523,6 +523,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, From ed9d5650ba6ae966193125d1c1600a7d6d7826cb Mon Sep 17 00:00:00 2001 From: Chris Macklin Date: Wed, 7 Aug 2024 15:30:22 -0700 Subject: [PATCH 3/3] Add docstring. --- src/lib.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/lib.rs b/src/lib.rs index 07770a23..b88cba77 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -476,6 +476,7 @@ trait BufHandler { fn process_buf(&mut self, v: &mut Vec) -> Result<(), Error>; } +/// Provide the base implementation for sorting chunks and writing shards. pub struct SortAndWriteHandler where T: Send + Serialize,