Skip to content

Commit 0dfb31c

Browse files
committed
Apply google-java-format
1 parent bbc1c78 commit 0dfb31c

3 files changed

Lines changed: 13 additions & 7 deletions

File tree

lucene/core/src/java/org/apache/lucene/index/SortedDocValues.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,8 +101,8 @@ public TermsEnum termsEnum() throws IOException {
101101
* [minOrd, maxOrd]}. This is a bulk operation that avoids per-doc virtual dispatch overhead.
102102
*
103103
* <p>The default implementation falls back to per-doc evaluation via {@link #advanceExact} and
104-
* {@link #ordValue}. Subclasses with random-access storage (e.g., dense fixed-bitsPerValue fields)
105-
* can override this for significantly better performance.
104+
* {@link #ordValue}. Subclasses with random-access storage (e.g., dense fixed-bitsPerValue
105+
* fields) can override this for significantly better performance.
106106
*
107107
* @param fromDoc first doc ID to evaluate (inclusive)
108108
* @param toDoc last doc ID to evaluate (exclusive)

lucene/core/src/java/org/apache/lucene/search/DocValuesRangeIterator.java

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,14 @@ public static DocValuesRangeIterator forOrdinalRange(
107107
return skipper == null
108108
? new DocValuesValueRangeIterator(values, check, 2)
109109
: new DocValuesBlockRangeIterator(
110-
values, new SkipBlockRangeIterator(skipper, min, max), check, 2, false, values, min, max);
110+
values,
111+
new SkipBlockRangeIterator(skipper, min, max),
112+
check,
113+
2,
114+
false,
115+
values,
116+
min,
117+
max);
111118
}
112119

113120
/**

lucene/core/src/test/org/apache/lucene/search/TestSkipBlockRangeIteratorIntoBitSet.java

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -595,8 +595,7 @@ public void testOrdinalIntoBitSetMatchesLinearScan() throws Exception {
595595
SortedDocValues dv = ctx.reader().getSortedDocValues("ord");
596596
assertNotNull("Field must have a skip index", skipper);
597597

598-
DocValuesRangeIterator iter =
599-
DocValuesRangeIterator.forOrdinalRange(dv, skipper, 20, 40);
598+
DocValuesRangeIterator iter = DocValuesRangeIterator.forOrdinalRange(dv, skipper, 20, 40);
600599
iter.approximation().nextDoc();
601600

602601
FixedBitSet actual = new FixedBitSet(windowSize);
@@ -655,8 +654,8 @@ public void testOrdinalTwoPhaseIteratorIsWired() throws Exception {
655654

656655
/**
657656
* Tests that ordinalRangeIntoBitSet (bulk/fast path) produces the exact same results as per-doc
658-
* evaluation (slow path) across random data with various densities, range selectivities, and
659-
* edge cases (all-match, no-match, single-doc blocks, boundary docs).
657+
* evaluation (slow path) across random data with various densities, range selectivities, and edge
658+
* cases (all-match, no-match, single-doc blocks, boundary docs).
660659
*/
661660
public void testOrdinalRangeIntoBitSetMatchesPerDocEvaluation() throws Exception {
662661
Random rng = random();

0 commit comments

Comments
 (0)