-
Notifications
You must be signed in to change notification settings - Fork 2
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
Set randomAccess=true on LOAD. #4
Set randomAccess=true on LOAD. #4
Conversation
@@ -90,6 +90,9 @@ private IOContext(boolean readOnce, boolean load, boolean randomAccess) { | |||
if (readOnce && randomAccess) { | |||
throw new IllegalArgumentException("cannot be both readOnce and randomAccess"); | |||
} | |||
if (load && randomAccess == false) { | |||
throw new IllegalArgumentException("cannot be load but not randomAccess"); |
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.
This looks right to me. ++
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.
Trivially, maybe add something like this to the javadoc for load
:
If this flag is set, then randomAccess will be true.
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.
Good call, done.
… use are Poxix only. On Windows we can have a totally different way to madvise the kernel
@uschindler Would you like to take a look? |
62c708e
to
a729f02
Compare
I fixed the conflict. Sorry for force-pushing the main PR. I was not aware that you were working. |
No description provided.