mirror of https://github.com/apache/lucene.git
LUCENE-3892: Fix variable name.
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/branches/pforcodec_3892@1372408 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
789981c9fd
commit
ebdd6a5089
|
@ -55,7 +55,7 @@ final class ForUtil {
|
|||
*/
|
||||
static final int MAX_DATA_SIZE;
|
||||
static {
|
||||
int minDataSize = 0;
|
||||
int maxDataSize = 0;
|
||||
for (PackedInts.Format format : PackedInts.Format.values()) {
|
||||
for (int bpv = 1; bpv <= 32; ++bpv) {
|
||||
if (!format.isSupported(bpv)) {
|
||||
|
@ -63,10 +63,10 @@ final class ForUtil {
|
|||
}
|
||||
final PackedInts.Decoder decoder = PackedInts.getDecoder(format, PACKED_INTS_VERSION, bpv);
|
||||
final int iterations = (int) Math.ceil((float) BLOCK_SIZE / decoder.valueCount());
|
||||
minDataSize = Math.max(minDataSize, iterations * decoder.valueCount());
|
||||
maxDataSize = Math.max(maxDataSize, iterations * decoder.valueCount());
|
||||
}
|
||||
}
|
||||
MAX_DATA_SIZE = minDataSize;
|
||||
MAX_DATA_SIZE = maxDataSize;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue