Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Separate header parsing and block reading #20

Open
martindurant opened this issue Aug 23, 2017 · 1 comment
Open

Separate header parsing and block reading #20

martindurant opened this issue Aug 23, 2017 · 1 comment

Comments

@martindurant
Copy link
Contributor

In order to allow parallel reading by blocks, would prefer to have the class be able to read the header on instantiation, and provide the schema and sync marker. This happens here in fastavro, could copy that.

I appreciate that in cyavro's case, the schema is held in C variables, which we cannot directly serialize. That means, that we need to be able to grab as many bytes as were required for the first part, and pass those around so that a reader with initialized vars can be recreated without having to open and interpret the same file.

The second part will be to be able to read a block of bytes between sync markers. That might need prepending the block with the bytes required to parse the header.

@martindurant
Copy link
Contributor Author

NB: it should not be necessary to read the first record (and therefore uncompress the first block) for this.

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

No branches or pull requests

1 participant