You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@lucene.apache.org by "jpountz (via GitHub)" <gi...@apache.org> on 2024/03/25 12:57:58 UTC

[I] Replace boolean flags on MergeContext with an enum [lucene]

jpountz opened a new issue, #13211:
URL: https://github.com/apache/lucene/issues/13211

   ### Description
   
   `MergeContext` has a few boolean flags: `readOnce`, `load`, `randomAccess`. But some combinations of these flags don't make sense, e.g. something can't be `readOnce` and `randomAccess` at the same time. So it would be natural to identify combinations that make sense and represent them as an `enum`.
   
   Separately @rmuir suggested having a more natural translation between `IOContext` and `(m|f)advise`. So maybe this enum could be modeled after the allowed values for `posix_fadvise`:  `NOREUSE` (read-once), `RANDOM`, etc.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@lucene.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@lucene.apache.org
For additional commands, e-mail: issues-help@lucene.apache.org


Re: [I] Replace boolean flags on IOContext with an enum [lucene]

Posted by "jpountz (via GitHub)" <gi...@apache.org>.
jpountz closed issue #13211: Replace boolean flags on IOContext with an enum
URL: https://github.com/apache/lucene/issues/13211


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@lucene.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@lucene.apache.org
For additional commands, e-mail: issues-help@lucene.apache.org