File tree 1 file changed +5
-3
lines changed
lucene/core/src/java/org/apache/lucene/util/bkd
1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -986,18 +986,20 @@ private void visitCompressedDocValuesEarlyTerminate(
986
986
// the byte at `compressedByteOffset` is compressed using run-length compression,
987
987
// other suffix bytes are stored verbatim
988
988
final int compressedByteOffset =
989
- compressedDim * config .bytesPerDim + commonPrefixLengths [compressedDim ];
989
+ compressedDim * config .bytesPerDim () + commonPrefixLengths [compressedDim ];
990
990
commonPrefixLengths [compressedDim ]++;
991
991
int i ;
992
992
boolean continueVisit = true ;
993
993
for (i = 0 ; i < count ; ) {
994
994
scratchPackedValue [compressedByteOffset ] = in .readByte ();
995
995
final int runLen = Byte .toUnsignedInt (in .readByte ());
996
996
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 ++) {
998
998
int prefix = commonPrefixLengths [dim ];
999
999
in .readBytes (
1000
- scratchPackedValue , dim * config .bytesPerDim + prefix , config .bytesPerDim - prefix );
1000
+ scratchPackedValue ,
1001
+ dim * config .bytesPerDim () + prefix ,
1002
+ config .bytesPerDim () - prefix );
1001
1003
}
1002
1004
int offset = i + j ;
1003
1005
continueVisit =
You can’t perform that action at this time.
0 commit comments