Apache Lucene open-source search software
Make `pack` methods public for `BigIntegerPoint` and `HalfFloatPoint` (#14784)
Prudhvi Godithic7ac4d7902ae
diff --git a/lucene/CHANGES.txt b/lucene/CHANGES.txtindex 310771fa488..8444a52ed9a 100644--- a/lucene/CHANGES.txt+++ b/lucene/CHANGES.txt@@ -100,6 +100,8 @@ New Features* GITHUB#14708: Add a DoubleValuesSource for full precision vector similarity scores. (Vigya Sharma)+* GITHUB#14784: Make pack methods public for BigIntegerPoint and HalfFloatPoint. (Prudhvi Godithi)+Improvements---------------------* GITHUB#14458: Add an IndexDeletion policy that retains the last N commits. (Owais Kazi)diff --git a/lucene/sandbox/src/java/org/apache/lucene/sandbox/document/BigIntegerPoint.java b/lucene/sandbox/src/java/org/apache/lucene/sandbox/document/BigIntegerPoint.javaindex 615649f664d..3ae7fe4e1e9 100644--- a/lucene/sandbox/src/java/org/apache/lucene/sandbox/document/BigIntegerPoint.java+++ b/lucene/sandbox/src/java/org/apache/lucene/sandbox/document/BigIntegerPoint.java@@ -99,7 +99,7 @@ public class BigIntegerPoint extends Field {return decodeDimension(bytes.bytes, bytes.offset);}- private static BytesRef pack(BigInteger... point) {+ public static BytesRef pack(BigInteger... point) {if (point == null) {throw new IllegalArgumentException("point must not be null");}diff --git a/lucene/sandbox/src/java/org/apache/lucene/sandbox/document/HalfFloatPoint.java b/lucene/sandbox/src/java/org/apache/lucene/sandbox/document/HalfFloatPoint.javaindex 4605a37df15..0e226f5be26 100644--- a/lucene/sandbox/src/java/org/apache/lucene/sandbox/document/HalfFloatPoint.java+++ b/lucene/sandbox/src/java/org/apache/lucene/sandbox/document/HalfFloatPoint.java@@ -247,7 +247,7 @@ public final class HalfFloatPoint extends Field {return decodeDimension(bytes.bytes, bytes.offset);}- private static BytesRef pack(float... point) {+ public static BytesRef pack(float... point) {if (point == null) {throw new IllegalArgumentException("point must not be null");}