Skip to content

Commit 5ba8791

Browse files
committed
naming
1 parent 6bb2a4a commit 5ba8791

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

server/src/main/java/org/elasticsearch/index/codec/tsdb/es819/ES819TSDBDocValuesProducer.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1493,7 +1493,7 @@ static boolean isDense(int firstDocId, int lastDocId, int length) {
14931493
);
14941494
return new BaseSparseNumericValues(disi) {
14951495
private final TSDBDocValuesEncoder decoder = new TSDBDocValuesEncoder(ES819TSDBDocValuesFormat.NUMERIC_BLOCK_SIZE);
1496-
private IndexedDISI jumpDISI;
1496+
private IndexedDISI lookAheadDISI;
14971497
private long currentBlockIndex = -1;
14981498
private final long[] currentBlock = new long[ES819TSDBDocValuesFormat.NUMERIC_BLOCK_SIZE];
14991499

@@ -1534,8 +1534,8 @@ public BlockLoader.Block tryRead(
15341534
assert false : "nullsFiltered is true, but doc [" + firstDoc + "] has no value";
15351535
throw new IllegalStateException("nullsFiltered is true, but doc [" + firstDoc + "] has no value");
15361536
}
1537-
if (jumpDISI == null) {
1538-
jumpDISI = new IndexedDISI(
1537+
if (lookAheadDISI == null) {
1538+
lookAheadDISI = new IndexedDISI(
15391539
data,
15401540
entry.docsWithFieldOffset,
15411541
entry.docsWithFieldLength,
@@ -1545,15 +1545,15 @@ public BlockLoader.Block tryRead(
15451545
);
15461546
}
15471547
final int lastDoc = docs.get(docs.count() - 1);
1548-
if (jumpDISI.advanceExact(lastDoc) == false) {
1548+
if (lookAheadDISI.advanceExact(lastDoc) == false) {
15491549
assert false : "nullsFiltered is true, but doc [" + lastDoc + "] has no value";
15501550
throw new IllegalStateException("nullsFiltered is true, but doc [" + lastDoc + "] has no value");
15511551
}
15521552
// Assumes docIds are unique - if the number of value indices between the first
15531553
// and last doc equals the doc count, all values can be read and converted in bulk
15541554
// TODO: Pass docCount attr for enrich and lookup.
15551555
final int firstIndex = disi.index();
1556-
final int lastIndex = jumpDISI.index();
1556+
final int lastIndex = lookAheadDISI.index();
15571557
final int valueCount = lastIndex - firstIndex + 1;
15581558
if (valueCount != docs.count()) {
15591559
return null;

0 commit comments

Comments
 (0)