Skip to content

Commit

Permalink
Make SortAndWriteHandler public. (#52)
Browse files Browse the repository at this point in the history
  • Loading branch information
macklin-10x authored Aug 7, 2024
1 parent ee785db commit fe6deba
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -476,7 +476,8 @@ trait BufHandler<T> {
fn process_buf(&mut self, v: &mut Vec<T>) -> Result<(), Error>;
}

struct SortAndWriteHandler<T, S>
/// Provide the base implementation for sorting chunks and writing shards.
pub struct SortAndWriteHandler<T, S>
where
T: Send + Serialize,
S: SortKey<T>,
Expand Down Expand Up @@ -523,6 +524,7 @@ where
S: SortKey<T>,
<S as SortKey<T>>::Key: Ord + Clone + Serialize,
{
/// Create a new handler using the provided chunk size, writing to path.
pub fn new<P: AsRef<Path>>(
chunk_size: usize,
path: P,
Expand Down

0 comments on commit fe6deba

Please sign in to comment.