Skip to content

ARROW-2583: [Rust] Buffer should be typeless - #2330

Closed
sunchao wants to merge 20 commits into
apache:masterfrom
sunchao:ARROW-2583
Closed

sunchao wants to merge 20 commits into
apache:masterfrom
sunchao:ARROW-2583

Conversation

@sunchao

@sunchao sunchao commented Jul 27, 2018

Copy link
Copy Markdown
Member

This changes the existing Buffer class to be non-generic over type T, since a Buffer class should just represent a plain byte array and interpretation of the data within the buffer should be done on a higher level, such as in Array.

While working on this, I found that I also need to make significant changes on the Array and List types, since they are currently heavily tied with the Buffer<T> implementation. The new implementation follows arrow-cpp and defines a ArrayData struct which provides the common operations on a Arrow array. Subtypes of Array then provide specific operations for the types they represent. For instance, one can get a primitive value at index i for PrimitiveArray type, or can get a column at index i for StructArray.

I removed List since it's no longer necessary. Removed PrimitiveArray::{min,max} for now but plan to add them back.

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants