Skip to content

Commit

Permalink
renames
Browse files Browse the repository at this point in the history
  • Loading branch information
robert3005 committed Oct 21, 2024
1 parent 2682036 commit ffb6cc1
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ use crate::layouts::{
use crate::stream_writer::ByteRange;

#[derive(Debug)]
pub struct InlineSchemaLayoutSpec;
pub struct InlineDTypeLayoutSpec;

impl LayoutSpec for InlineSchemaLayoutSpec {
impl LayoutSpec for InlineDType LayoutSpec {
fn id(&self) -> LayoutId {
INLINE_SCHEMA_LAYOUT_ID
}
Expand All @@ -29,7 +29,7 @@ impl LayoutSpec for InlineSchemaLayoutSpec {
layout_reader: LayoutDeserializer,
message_cache: RelativeLayoutCache,
) -> Box<dyn LayoutReader> {
Box::new(InlineSchemaLayout::new(
Box::new(InlineDTypeLayout::new(
fb_bytes,
fb_loc,
scan,
Expand All @@ -40,7 +40,7 @@ impl LayoutSpec for InlineSchemaLayoutSpec {
}

#[derive(Debug)]
pub struct InlineSchemaLayout {
pub struct InlineDTypeLayout {
fb_bytes: Bytes,
fb_loc: usize,
scan: Scan,
Expand All @@ -54,7 +54,7 @@ enum DTypeReadResult {
DType(DType),
}

impl InlineSchemaLayout {
impl InlineDTypeLayout {
pub fn new(
fb_bytes: Bytes,
fb_loc: usize,
Expand Down Expand Up @@ -108,7 +108,7 @@ impl InlineSchemaLayout {
}
}

impl LayoutReader for InlineSchemaLayout {
impl LayoutReader for InlineDTypeLayout {
fn read_next(&mut self) -> VortexResult<Option<ReadResult>> {
if let Some(cr) = self.child_layout.as_mut() {
cr.read_next()
Expand All @@ -120,7 +120,7 @@ impl LayoutReader for InlineSchemaLayout {
.flatbuffer()
.children()
.ok_or_else(|| vortex_err!("No children"))?
.get(1);
.get(0);

self.child_layout = Some(
self.layout_builder.read_layout(
Expand Down
2 changes: 1 addition & 1 deletion vortex-serde/src/layouts/read/layouts/mod.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
mod chunked;
mod column;
mod flat;
mod inline_schema;
mod inline_dtype;

pub use chunked::ChunkedLayoutSpec;
pub use column::ColumnLayoutSpec;
Expand Down

0 comments on commit ffb6cc1

Please sign in to comment.