File tree Expand file tree Collapse file tree 1 file changed +5
-6
lines changed
vortex-layout/src/layouts Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -61,15 +61,14 @@ impl PathStrategy {
6161 /// ## Example
6262 ///
6363 /// ```
64+ /// # use std::sync::Arc;
6465 /// # use vortex_layout::layouts::flat::writer::FlatLayoutStrategy;
6566 /// # use vortex_layout::layouts::path::PathStrategy;
67+ ///
6668 /// // Build a write strategy that does not compress validity or any leaf fields.
67- /// let strategy = PathStrategy::new(
68- /// // strategy for validity buffer
69- /// FlatLayoutStrategy::default(),
70- /// // strategy for all leaf columns
71- /// FlatLayoutStrategy::default(),
72- /// );
69+ /// let flat = Arc::new(FlatLayoutStrategy::default());
70+ ///
71+ /// let strategy = PathStrategy::new(flat.clone(), flat.clone());
7372 /// ```
7473 pub fn new ( validity : Arc < dyn LayoutStrategy > , fallback : Arc < dyn LayoutStrategy > ) -> Self {
7574 Self {
You can’t perform that action at this time.
0 commit comments