Skip to content

Commit ade0747

Browse files
authored
Remove unused StructOfChunks in favour of VortexLayoutStrategy (#2038)
1 parent a091281 commit ade0747

File tree

5 files changed

+7
-51
lines changed

5 files changed

+7
-51
lines changed

vortex-file/src/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,6 @@ pub mod io;
9898
mod open;
9999
pub mod read;
100100
pub mod segments;
101-
mod strategy;
102101
#[cfg(test)]
103102
mod tests;
104103
mod writer;

vortex-file/src/writer.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,10 @@ use vortex_array::stream::ArrayStream;
33
use vortex_error::{vortex_bail, vortex_err, VortexExpect, VortexResult};
44
use vortex_flatbuffers::{FlatBuffer, FlatBufferRoot, WriteFlatBuffer, WriteFlatBufferExt};
55
use vortex_io::VortexWrite;
6-
use vortex_layout::strategies::LayoutStrategy;
6+
use vortex_layout::strategies::{LayoutStrategy, VortexLayoutStrategy};
77

88
use crate::footer::{FileLayout, Postscript, Segment};
99
use crate::segments::writer::BufferedSegmentWriter;
10-
use crate::strategy::VortexLayoutStrategy;
1110
use crate::{EOF_SIZE, MAGIC_BYTES, MAX_FOOTER_SIZE, VERSION};
1211

1312
pub struct VortexWriteOptions {

vortex-layout/src/strategies/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@
66
//! otherwise manipulate the chunks of data enabling experimentation with different strategies
77
//! all while remaining independent of the read code.
88
9-
mod struct_of_chunks;
9+
mod strategy;
1010

11-
pub use struct_of_chunks::*;
11+
pub use strategy::*;
1212
use vortex_array::ArrayData;
1313
use vortex_dtype::DType;
1414
use vortex_error::VortexResult;
Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,10 @@
22
33
use vortex_dtype::DType;
44
use vortex_error::VortexResult;
5-
use vortex_layout::layouts::chunked::writer::{ChunkedLayoutOptions, ChunkedLayoutWriter};
6-
use vortex_layout::layouts::struct_::writer::StructLayoutWriter;
7-
use vortex_layout::strategies::{LayoutStrategy, LayoutWriter, LayoutWriterExt};
5+
6+
use crate::layouts::chunked::writer::{ChunkedLayoutOptions, ChunkedLayoutWriter};
7+
use crate::layouts::struct_::writer::StructLayoutWriter;
8+
use crate::strategies::{LayoutStrategy, LayoutWriter, LayoutWriterExt};
89

910
/// The default Vortex file layout strategy.
1011
///

vortex-layout/src/strategies/struct_of_chunks.rs

Lines changed: 0 additions & 43 deletions
This file was deleted.

0 commit comments

Comments
 (0)