@@ -44,7 +44,7 @@ use crate::sequence::SequentialStreamExt;
4444
4545/// A configurable strategy for writing tables with nested field columns, allowing
4646/// overrides for specific leaf columns.
47- pub struct PathStrategy {
47+ pub struct TableStrategy {
4848 /// A set of leaf field overrides, e.g. to force one column to be compact-compressed.
4949 leaf_writers : HashMap < FieldPath , Arc < dyn LayoutStrategy > > ,
5050 /// The writer for any validity arrays that may be present
@@ -53,7 +53,7 @@ pub struct PathStrategy {
5353 fallback : Arc < dyn LayoutStrategy > ,
5454}
5555
56- impl Default for PathStrategy {
56+ impl Default for TableStrategy {
5757 fn default ( ) -> Self {
5858 let flat = Arc :: new ( FlatLayoutStrategy :: default ( ) ) ;
5959
@@ -65,7 +65,7 @@ impl Default for PathStrategy {
6565 }
6666}
6767
68- impl PathStrategy {
68+ impl TableStrategy {
6969 /// Create a new writer with the specified write strategies for validity, and for all leaf
7070 /// fields, with no overrides.
7171 ///
@@ -76,12 +76,12 @@ impl PathStrategy {
7676 /// ```
7777 /// # use std::sync::Arc;
7878 /// # use vortex_layout::layouts::flat::writer::FlatLayoutStrategy;
79- /// # use vortex_layout::layouts::path::PathStrategy ;
79+ /// # use vortex_layout::layouts::table::TableStrategy ;
8080 ///
8181 /// // Build a write strategy that does not compress validity or any leaf fields.
8282 /// let flat = Arc::new(FlatLayoutStrategy::default());
8383 ///
84- /// let strategy = PathStrategy ::new(flat.clone(), flat.clone());
84+ /// let strategy = TableStrategy ::new(flat.clone(), flat.clone());
8585 /// ```
8686 pub fn new ( validity : Arc < dyn LayoutStrategy > , fallback : Arc < dyn LayoutStrategy > ) -> Self {
8787 Self {
@@ -101,7 +101,7 @@ impl PathStrategy {
101101 /// # use vortex_layout::layouts::compact::CompactCompressor;
102102 /// # use vortex_layout::layouts::compressed::CompressingStrategy;
103103 /// # use vortex_layout::layouts::flat::writer::FlatLayoutStrategy;
104- /// # use vortex_layout::layouts::path::PathStrategy ;
104+ /// # use vortex_layout::layouts::table::TableStrategy ;
105105 ///
106106 /// // A strategy for compressing data using the balanced BtrBlocks compressor.
107107 /// let compress_btrblocks = CompressingStrategy::new_btrblocks(FlatLayoutStrategy::default(), true);
@@ -112,7 +112,7 @@ impl PathStrategy {
112112 /// // Our combined strategy uses no compression for validity buffers, BtrBlocks compression
113113 /// // for most columns, and will use ZSTD compression for a nested binary column that we know
114114 /// // is never filtered in.
115- /// let strategy = PathStrategy ::new(
115+ /// let strategy = TableStrategy ::new(
116116 /// Arc::new(FlatLayoutStrategy::default()),
117117 /// Arc::new(compress_btrblocks),
118118 /// )
@@ -146,7 +146,7 @@ impl PathStrategy {
146146 }
147147}
148148
149- impl PathStrategy {
149+ impl TableStrategy {
150150 // Descend into a subfield for the writer.
151151 fn descend ( & self , field : & Field ) -> Self {
152152 // Start with the existing set of overrides, then only retain the ones that contain
@@ -184,7 +184,7 @@ impl PathStrategy {
184184
185185/// Specialized strategy for when we exactly know the input schema.
186186#[ async_trait]
187- impl LayoutStrategy for PathStrategy {
187+ impl LayoutStrategy for TableStrategy {
188188 async fn write_stream (
189189 & self ,
190190 ctx : ArrayContext ,
@@ -361,7 +361,7 @@ mod tests {
361361 use vortex_dtype:: field_path;
362362
363363 use crate :: layouts:: flat:: writer:: FlatLayoutStrategy ;
364- use crate :: layouts:: path :: PathStrategy ;
364+ use crate :: layouts:: table :: TableStrategy ;
365365
366366 #[ test]
367367 #[ should_panic(
@@ -371,7 +371,7 @@ mod tests {
371371 let flat = Arc :: new ( FlatLayoutStrategy :: default ( ) ) ;
372372
373373 // Success
374- let path = PathStrategy :: default ( ) . with_field_writer ( field_path ! ( a. b. c) , flat. clone ( ) ) ;
374+ let path = TableStrategy :: default ( ) . with_field_writer ( field_path ! ( a. b. c) , flat. clone ( ) ) ;
375375
376376 // Should panic right here.
377377 let _path = path. with_field_writer ( field_path ! ( a. b) , flat) ;
0 commit comments