Improve DirectReader java doc (#12835)

This commit is contained in:
gf2121 2023-11-23 17:19:57 +08:00 committed by GitHub
parent 74fe7f7fdf
commit 76fe6bdbc1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -27,7 +27,7 @@ import org.apache.lucene.util.LongValues;
* <p>Example usage:
*
* <pre class="prettyprint">
* int bitsPerValue = 100;
* int bitsPerValue = DirectWriter.bitsRequired(100);
* IndexInput in = dir.openInput("packed", IOContext.DEFAULT);
* LongValues values = DirectReader.getInstance(in.randomAccessSlice(start, end), bitsPerValue);
* for (int i = 0; i &lt; numValues; i++) {