Skip to content

Commit 42ad379

Browse files
add JavaDoc for expand8 in VectorUtil (#15218)
1 parent 938c139 commit 42ad379

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

lucene/core/src/java/org/apache/lucene/util/VectorUtil.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -492,6 +492,12 @@ public static int filterByScore(
492492
return IMPL.filterByScore(docBuffer, scoreBuffer, minScoreInclusive, upTo);
493493
}
494494

495+
/**
496+
* Expands 64 integers in-place into a 256-element array by extracting individual bytes. Each
497+
* 32-bit integer is split into 4 bytes. Only works on arrays with 256 length.
498+
*
499+
* @param arr the array to expand in-place
500+
*/
495501
public static void expand8(int[] arr) {
496502
IMPL.expand8(arr);
497503
}

0 commit comments

Comments
 (0)