Skip to content

Commit

Permalink
minor changes
Browse files Browse the repository at this point in the history
  • Loading branch information
angelip2303 committed Mar 16, 2024
1 parent f30f4f0 commit 634040c
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/storage/layout/matrix.rs
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,10 @@ impl Layout<Chunk> for MatrixLayout {
sharding_codec_builder.bytes_to_bytes_codecs(vec![Box::new(GzipCodec::new(5)?)]);
Ok(Box::new(sharding_codec_builder.build()))
}

fn name(&self) -> String {
"MatrixLayout".to_owned()
}
}

impl LayoutOps<Chunk> for MatrixLayout {
Expand Down
1 change: 1 addition & 0 deletions src/storage/layout/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,7 @@ pub trait LayoutOps<C> {
}

pub trait Layout<C>: LayoutOps<C> {
fn name(&self) -> String;
fn shape(&self, dimensionality: &Dimensionality) -> Vec<u64>;
fn data_type(&self) -> DataType;
fn chunk_shape(
Expand Down
4 changes: 4 additions & 0 deletions src/storage/layout/tabular.rs
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,10 @@ impl Layout<Chunk> for TabularLayout {
sharding_codec_builder.bytes_to_bytes_codecs(vec![Box::new(GzipCodec::new(5)?)]);
Ok(Box::new(sharding_codec_builder.build()))
}

fn name(&self) -> String {
"TabularLayout".to_owned()
}
}

impl LayoutOps<Chunk> for TabularLayout {
Expand Down

0 comments on commit 634040c

Please sign in to comment.