You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by ra...@apache.org on 2025/09/23 09:22:14 UTC
(lucene) branch main updated: add JavaDoc for expand8 in VectorUtil (#15218)
This is an automated email from the ASF dual-hosted git repository.
ramachil pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/lucene.git
The following commit(s) were added to refs/heads/main by this push:
new 42ad379d0cf add JavaDoc for expand8 in VectorUtil (#15218)
42ad379d0cf is described below
commit 42ad379d0cfbb78d6a7e48727387035e247d7448
Author: Ramakrishna Chilaka <49...@users.noreply.github.com>
AuthorDate: Tue Sep 23 14:52:09 2025 +0530
add JavaDoc for expand8 in VectorUtil (#15218)
---
lucene/core/src/java/org/apache/lucene/util/VectorUtil.java | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/lucene/core/src/java/org/apache/lucene/util/VectorUtil.java b/lucene/core/src/java/org/apache/lucene/util/VectorUtil.java
index 0440f054388..a410d270753 100644
--- a/lucene/core/src/java/org/apache/lucene/util/VectorUtil.java
+++ b/lucene/core/src/java/org/apache/lucene/util/VectorUtil.java
@@ -492,6 +492,12 @@ public final class VectorUtil {
return IMPL.filterByScore(docBuffer, scoreBuffer, minScoreInclusive, upTo);
}
+ /**
+ * Expands 64 integers in-place into a 256-element array by extracting individual bytes. Each
+ * 32-bit integer is split into 4 bytes. Only works on arrays with 256 length.
+ *
+ * @param arr the array to expand in-place
+ */
public static void expand8(int[] arr) {
IMPL.expand8(arr);
}