@@ -63,8 +63,7 @@ protected long pick(SortedNumericDocValues values) throws IOException {
6363 }
6464
6565 @ Override
66- protected long pick (SortedNumericDocValues values , long missingValue , DocIdSetIterator docItr , int startDoc , int endDoc ,
67- int maxChildren ) throws IOException {
66+ protected long pick (SortedNumericDocValues values , long missingValue , DocIdSetIterator docItr , int startDoc , int endDoc , int maxChildren ) throws IOException {
6867 int totalCount = 0 ;
6968 long totalValue = 0 ;
7069 int count = 0 ;
@@ -95,8 +94,7 @@ protected double pick(SortedNumericDoubleValues values) throws IOException {
9594 }
9695
9796 @ Override
98- protected double pick (SortedNumericDoubleValues values , double missingValue , DocIdSetIterator docItr , int startDoc , int endDoc ,
99- int maxChildren ) throws IOException {
97+ protected double pick (SortedNumericDoubleValues values , double missingValue , DocIdSetIterator docItr , int startDoc , int endDoc , int maxChildren ) throws IOException {
10098 int totalCount = 0 ;
10199 double totalValue = 0 ;
102100 int count = 0 ;
@@ -132,8 +130,7 @@ protected long pick(SortedNumericDocValues values) throws IOException {
132130 }
133131
134132 @ Override
135- protected long pick (SortedNumericDocValues values , long missingValue , DocIdSetIterator docItr , int startDoc , int endDoc ,
136- int maxChildren ) throws IOException {
133+ protected long pick (SortedNumericDocValues values , long missingValue , DocIdSetIterator docItr , int startDoc , int endDoc , int maxChildren ) throws IOException {
137134 int totalCount = 0 ;
138135 long totalValue = 0 ;
139136 int count = 0 ;
@@ -166,8 +163,7 @@ protected double pick(SortedNumericDoubleValues values) throws IOException {
166163 }
167164
168165 @ Override
169- protected double pick (SortedNumericDoubleValues values , double missingValue , DocIdSetIterator docItr , int startDoc , int endDoc ,
170- int maxChildren ) throws IOException {
166+ protected double pick (SortedNumericDoubleValues values , double missingValue , DocIdSetIterator docItr , int startDoc , int endDoc , int maxChildren ) throws IOException {
171167 int totalCount = 0 ;
172168 double totalValue = 0 ;
173169 int count = 0 ;
@@ -231,8 +227,7 @@ protected long pick(SortedNumericDocValues values) throws IOException {
231227 }
232228
233229 @ Override
234- protected long pick (SortedNumericDocValues values , long missingValue , DocIdSetIterator docItr , int startDoc , int endDoc ,
235- int maxChildren ) throws IOException {
230+ protected long pick (SortedNumericDocValues values , long missingValue , DocIdSetIterator docItr , int startDoc , int endDoc , int maxChildren ) throws IOException {
236231 boolean hasValue = false ;
237232 long minValue = Long .MAX_VALUE ;
238233 int count = 0 ;
@@ -254,8 +249,7 @@ protected double pick(SortedNumericDoubleValues values) throws IOException {
254249 }
255250
256251 @ Override
257- protected double pick (SortedNumericDoubleValues values , double missingValue , DocIdSetIterator docItr , int startDoc , int endDoc ,
258- int maxChildren ) throws IOException {
252+ protected double pick (SortedNumericDoubleValues values , double missingValue , DocIdSetIterator docItr , int startDoc , int endDoc , int maxChildren ) throws IOException {
259253 boolean hasValue = false ;
260254 double minValue = Double .POSITIVE_INFINITY ;
261255 int count = 0 ;
@@ -277,8 +271,7 @@ protected BytesRef pick(SortedBinaryDocValues values) throws IOException {
277271 }
278272
279273 @ Override
280- protected BytesRef pick (BinaryDocValues values , BytesRefBuilder builder , DocIdSetIterator docItr , int startDoc , int endDoc ,
281- int maxChildren ) throws IOException {
274+ protected BytesRef pick (BinaryDocValues values , BytesRefBuilder builder , DocIdSetIterator docItr , int startDoc , int endDoc , int maxChildren ) throws IOException {
282275 BytesRefBuilder bytesRefBuilder = null ;
283276 int count = 0 ;
284277 for (int doc = startDoc ; doc < endDoc ; doc = docItr .nextDoc ()) {
@@ -340,8 +333,7 @@ protected long pick(SortedNumericDocValues values) throws IOException {
340333 }
341334
342335 @ Override
343- protected long pick (SortedNumericDocValues values , long missingValue , DocIdSetIterator docItr , int startDoc , int endDoc ,
344- int maxChildren ) throws IOException {
336+ protected long pick (SortedNumericDocValues values , long missingValue , DocIdSetIterator docItr , int startDoc , int endDoc , int maxChildren ) throws IOException {
345337 boolean hasValue = false ;
346338 long maxValue = Long .MIN_VALUE ;
347339 int count = 0 ;
@@ -371,8 +363,7 @@ protected double pick(SortedNumericDoubleValues values) throws IOException {
371363 }
372364
373365 @ Override
374- protected double pick (SortedNumericDoubleValues values , double missingValue , DocIdSetIterator docItr , int startDoc , int endDoc ,
375- int maxChildren ) throws IOException {
366+ protected double pick (SortedNumericDoubleValues values , double missingValue , DocIdSetIterator docItr , int startDoc , int endDoc , int maxChildren ) throws IOException {
376367 boolean hasValue = false ;
377368 double maxValue = Double .NEGATIVE_INFINITY ;
378369 int count = 0 ;
@@ -402,8 +393,7 @@ protected BytesRef pick(SortedBinaryDocValues values) throws IOException {
402393 }
403394
404395 @ Override
405- protected BytesRef pick (BinaryDocValues values , BytesRefBuilder builder , DocIdSetIterator docItr , int startDoc , int endDoc ,
406- int maxChildren ) throws IOException {
396+ protected BytesRef pick (BinaryDocValues values , BytesRefBuilder builder , DocIdSetIterator docItr , int startDoc , int endDoc , int maxChildren ) throws IOException {
407397 BytesRefBuilder bytesRefBuilder = null ;
408398 int count = 0 ;
409399 for (int doc = startDoc ; doc < endDoc ; doc = docItr .nextDoc ()) {
@@ -518,8 +508,7 @@ protected long pick(SortedNumericDocValues values) throws IOException {
518508 * NOTE: Calling the returned instance on docs that are not root docs is illegal
519509 * The returned instance can only be evaluate the current and upcoming docs
520510 */
521- public NumericDocValues select (final SortedNumericDocValues values , final long missingValue , final BitSet parentDocs ,
522- final DocIdSetIterator childDocs , int maxDoc , int maxChildren ) throws IOException {
511+ public NumericDocValues select (final SortedNumericDocValues values , final long missingValue , final BitSet parentDocs , final DocIdSetIterator childDocs , int maxDoc , int maxChildren ) throws IOException {
523512 if (parentDocs == null || childDocs == null ) {
524513 return FieldData .replaceMissing (DocValues .emptyNumeric (), missingValue );
525514 }
@@ -563,8 +552,7 @@ public long longValue() {
563552 };
564553 }
565554
566- protected long pick (SortedNumericDocValues values , long missingValue , DocIdSetIterator docItr , int startDoc , int endDoc ,
567- int maxChildren ) throws IOException {
555+ protected long pick (SortedNumericDocValues values , long missingValue , DocIdSetIterator docItr , int startDoc , int endDoc , int maxChildren ) throws IOException {
568556 throw new IllegalArgumentException ("Unsupported sort mode: " + this );
569557 }
570558
@@ -617,8 +605,7 @@ protected double pick(SortedNumericDoubleValues values) throws IOException {
617605 * NOTE: Calling the returned instance on docs that are not root docs is illegal
618606 * The returned instance can only be evaluate the current and upcoming docs
619607 */
620- public NumericDoubleValues select (final SortedNumericDoubleValues values , final double missingValue , final BitSet parentDocs ,
621- final DocIdSetIterator childDocs , int maxDoc , int maxChildren ) throws IOException {
608+ public NumericDoubleValues select (final SortedNumericDoubleValues values , final double missingValue , final BitSet parentDocs , final DocIdSetIterator childDocs , int maxDoc , int maxChildren ) throws IOException {
622609 if (parentDocs == null || childDocs == null ) {
623610 return FieldData .replaceMissing (FieldData .emptyNumericDouble (), missingValue );
624611 }
@@ -654,8 +641,7 @@ public double doubleValue() throws IOException {
654641 };
655642 }
656643
657- protected double pick (SortedNumericDoubleValues values , double missingValue , DocIdSetIterator docItr , int startDoc , int endDoc ,
658- int maxChildren ) throws IOException {
644+ protected double pick (SortedNumericDoubleValues values , double missingValue , DocIdSetIterator docItr , int startDoc , int endDoc , int maxChildren ) throws IOException {
659645 throw new IllegalArgumentException ("Unsupported sort mode: " + this );
660646 }
661647
@@ -727,8 +713,7 @@ protected BytesRef pick(SortedBinaryDocValues values) throws IOException {
727713 * NOTE: Calling the returned instance on docs that are not root docs is illegal
728714 * The returned instance can only be evaluate the current and upcoming docs
729715 */
730- public BinaryDocValues select (final SortedBinaryDocValues values , final BytesRef missingValue , final BitSet parentDocs ,
731- final DocIdSetIterator childDocs , int maxDoc , int maxChildren ) throws IOException {
716+ public BinaryDocValues select (final SortedBinaryDocValues values , final BytesRef missingValue , final BitSet parentDocs , final DocIdSetIterator childDocs , int maxDoc , int maxChildren ) throws IOException {
732717 if (parentDocs == null || childDocs == null ) {
733718 return select (FieldData .emptySortedBinary (), missingValue );
734719 }
@@ -771,8 +756,7 @@ public BytesRef binaryValue() throws IOException {
771756 };
772757 }
773758
774- protected BytesRef pick (BinaryDocValues values , BytesRefBuilder builder , DocIdSetIterator docItr , int startDoc , int endDoc ,
775- int maxChildren ) throws IOException {
759+ protected BytesRef pick (BinaryDocValues values , BytesRefBuilder builder , DocIdSetIterator docItr , int startDoc , int endDoc , int maxChildren ) throws IOException {
776760 throw new IllegalArgumentException ("Unsupported sort mode: " + this );
777761 }
778762
@@ -784,8 +768,7 @@ protected BytesRef pick(BinaryDocValues values, BytesRefBuilder builder, DocIdSe
784768 */
785769 public SortedDocValues select (final SortedSetDocValues values ) {
786770 if (values .getValueCount () >= Integer .MAX_VALUE ) {
787- throw new UnsupportedOperationException ("fields containing more than " + (Integer .MAX_VALUE - 1 ) +
788- " unique terms are unsupported" );
771+ throw new UnsupportedOperationException ("fields containing more than " + (Integer .MAX_VALUE - 1 ) + " unique terms are unsupported" );
789772 }
790773
791774 final SortedDocValues singleton = DocValues .unwrapSingleton (values );
@@ -846,8 +829,7 @@ protected int pick(SortedSetDocValues values) throws IOException {
846829 * NOTE: Calling the returned instance on docs that are not root docs is illegal
847830 * The returned instance can only be evaluate the current and upcoming docs
848831 */
849- public SortedDocValues select (final SortedSetDocValues values , final BitSet parentDocs , final DocIdSetIterator childDocs ,
850- int maxChildren ) throws IOException {
832+ public SortedDocValues select (final SortedSetDocValues values , final BitSet parentDocs , final DocIdSetIterator childDocs , int maxChildren ) throws IOException {
851833 if (parentDocs == null || childDocs == null ) {
852834 return select (DocValues .emptySortedSet ());
853835 }
0 commit comments