rmuir commented on a change in pull request #360:
URL: https://github.com/apache/lucene/pull/360#discussion_r724261686
##########
File path:
lucene/core/src/java/org/apache/lucene/store/ByteBuffersDataOutput.java
##########
@@ -137,6 +137,14 @@ public ByteBuffersDataOutput(
this.blockReuse = Objects.requireNonNull(blockReuse, "Block reuse must not
be null.");
}
Review comment:
I am working on an updated commit: will be later this evening. Trying to
add some javadocs here anyway and stuff like that. I think in most cases users
should use the default or simple ctors (estimated size) and not specify min/max
block sizes directly anyway: we should label this one "expert". And reserve the
right to change it in the future (for example, if we aligned our index files to
at least 8 bytes, we could then make `1 << 3` the minimum size and simplify a
ton of code: none of the primitive-type reads would ever span boundaries
anymore.
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]