-
Notifications
You must be signed in to change notification settings - Fork 0
[WIP] Unified Binary Reader/Writer #30
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
base: master
Are you sure you want to change the base?
Conversation
This file in particular: src/db/datastore/tuple/binary/BinaryTupleReaderWriter.java |
@@ -120,7 +123,7 @@ private Tuple getNextTuple() { | |||
* @inheritDoc | |||
*/ | |||
@Override | |||
public void seek(long index) { | |||
public void seek(int index) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just curious, why the change to int?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
originally the BB required inputs as longs, but now a ton of external APIs require ints, so I flipped to what was most common.
Why do we need this exactly ? Is it required before we do bulk loading or is it just to simplify some code in external sort / SMJ ? |
It simplifies the index creation, since you can implement random read and random write into the file. |
This need a really through review, since it changes a core part of the system. Please check it over.