Skip to content

Commit

Permalink
Add manifest references to arrow structure
Browse files Browse the repository at this point in the history
  • Loading branch information
paraseba committed Aug 3, 2024
1 parent 8ea8577 commit c391648
Show file tree
Hide file tree
Showing 4 changed files with 225 additions and 23 deletions.
16 changes: 16 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ publish = false
[dependencies]
arrow = "52.2.0"
async-trait = "0.1.81"
itertools = "0.13.0"
rand = "0.8.5"

[profile.release-with-debug]
Expand Down
9 changes: 4 additions & 5 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -213,10 +213,9 @@ pub type ChunkOffset = u64;
pub type ChunkLength = u64;

type TableOffset = u32;
type TableLength = u32;

#[derive(Debug, Clone, PartialEq, Eq)]
pub struct TableRegion(TableOffset, TableLength);
pub struct TableRegion(TableOffset, TableOffset);

#[derive(Debug, Clone, PartialEq, Eq)]
struct Flags(); // FIXME: implement
Expand All @@ -234,10 +233,10 @@ enum UserAttributesStructure {
Ref(UserAttributesRef),
}

#[derive(Debug, Clone, PartialEq)]
#[derive(Debug, Clone, PartialEq, Eq)]
struct ManifestExtents(Vec<ArrayIndices>);

#[derive(Debug, Clone, PartialEq)]
#[derive(Debug, Clone, PartialEq, Eq)]
struct ManifestRef {
object_id: ObjectId,
location: TableRegion,
Expand Down Expand Up @@ -266,7 +265,7 @@ pub enum NodeType {

#[derive(Debug, PartialEq)]
pub enum NodeData {
Array(ZarrArrayMetadata), //(manifests: Vec<ManifestRef>)
Array(ZarrArrayMetadata, Vec<ManifestRef>),
Group,
}

Expand Down
Loading

0 comments on commit c391648

Please sign in to comment.