Skip to content

Commit bf32dd1

Browse files
committed
update.
1 parent feac354 commit bf32dd1

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

lucene/core/src/java/org/apache/lucene/util/bkd/BKDReader.java

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -986,18 +986,20 @@ private void visitCompressedDocValuesEarlyTerminate(
986986
// the byte at `compressedByteOffset` is compressed using run-length compression,
987987
// other suffix bytes are stored verbatim
988988
final int compressedByteOffset =
989-
compressedDim * config.bytesPerDim + commonPrefixLengths[compressedDim];
989+
compressedDim * config.bytesPerDim() + commonPrefixLengths[compressedDim];
990990
commonPrefixLengths[compressedDim]++;
991991
int i;
992992
boolean continueVisit = true;
993993
for (i = 0; i < count; ) {
994994
scratchPackedValue[compressedByteOffset] = in.readByte();
995995
final int runLen = Byte.toUnsignedInt(in.readByte());
996996
for (int j = 0; j < runLen; ++j) {
997-
for (int dim = 0; dim < config.numDims; dim++) {
997+
for (int dim = 0; dim < config.numDims(); dim++) {
998998
int prefix = commonPrefixLengths[dim];
999999
in.readBytes(
1000-
scratchPackedValue, dim * config.bytesPerDim + prefix, config.bytesPerDim - prefix);
1000+
scratchPackedValue,
1001+
dim * config.bytesPerDim() + prefix,
1002+
config.bytesPerDim() - prefix);
10011003
}
10021004
int offset = i + j;
10031005
continueVisit =

0 commit comments

Comments
 (0)