mirror of https://github.com/apache/lucene.git
Improve DirectReader java doc (#12835)
This commit is contained in:
parent
74fe7f7fdf
commit
76fe6bdbc1
|
@ -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 < numValues; i++) {
|
||||
|
|
Loading…
Reference in New Issue