You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Fix linelength suppressions in index.fielddata
* Some lines that were too long were dead code => Removed them and all code that became dead because of it
* Relates #34884
@@ -303,7 +293,7 @@ public LongsRef docOrds(int docID) {
303
293
}
304
294
305
295
/**
306
-
* Return a {@link org.apache.lucene.util.packed.PackedInts.Reader} instance mapping every doc ID to its first ordinal + 1 if it exists and 0 otherwise.
296
+
* Return a {@link PackedInts.Reader} instance mapping every doc ID to its first ordinal + 1 if it exists and 0 otherwise.
307
297
*/
308
298
publicPackedInts.ReadergetFirstOrdinals() {
309
299
returnordinals.firstOrdinals;
@@ -339,27 +329,6 @@ public OrdinalsBuilder addDoc(int doc) {
339
329
returnthis;
340
330
}
341
331
342
-
/**
343
-
* Returns <code>true</code> iff this builder contains a document ID that is associated with more than one ordinal. Otherwise <code>false</code>;
344
-
*/
345
-
publicbooleanisMultiValued() {
346
-
returnnumMultiValuedDocs > 0;
347
-
}
348
-
349
-
/**
350
-
* Returns the number distinct of document IDs with one or more values.
351
-
*/
352
-
publicintgetNumDocsWithValue() {
353
-
returnnumDocsWithValue;
354
-
}
355
-
356
-
/**
357
-
* Returns the number distinct of document IDs associated with exactly one value.
358
-
*/
359
-
publicintgetNumSingleValuedDocs() {
360
-
returnnumDocsWithValue - numMultiValuedDocs;
361
-
}
362
-
363
332
/**
364
333
* Returns the number distinct of document IDs associated with two or more values.
365
334
*/
@@ -381,29 +350,15 @@ public long getValueCount() {
381
350
returncurrentOrd + 1;
382
351
}
383
352
384
-
/**
385
-
* Builds a {@link BitSet} where each documents bit is that that has one or more ordinals associated with it.
386
-
* if every document has an ordinal associated with it this method returns <code>null</code>
387
-
*/
388
-
publicBitSetbuildDocsWithValuesSet() {
389
-
if (numDocsWithValue == maxDoc) {
390
-
returnnull;
391
-
}
392
-
finalFixedBitSetbitSet = newFixedBitSet(maxDoc);
393
-
for (intdocID = 0; docID < maxDoc; ++docID) {
394
-
if (ordinals.firstOrdinals.get(docID) != 0) {
395
-
bitSet.set(docID);
396
-
}
397
-
}
398
-
returnbitSet;
399
-
}
400
-
401
353
/**
402
354
* Builds an {@link Ordinals} instance from the builders current state.
0 commit comments