Skip to content

armgit / solr

Public Imported from GitHub
0

Apache Solr open-source search software

LUCENE-3280: add changes, remove dead code

Michael McCandless03984ec12473
diff --git a/lucene/CHANGES.txt b/lucene/CHANGES.txt
index a4c3d2556f4..574fc4571a2 100644
--- a/lucene/CHANGES.txt
+++ b/lucene/CHANGES.txt
@@ -519,6 +519,10 @@ New Features
* LUCENE-3290: Added FieldInvertState.numUniqueTerms
(Mike McCandless, Robert Muir)
+* LUCENE-3280: Add FixedBitSet, like OpenBitSet but is not elastic
+ (grow on demand if you set/get/clear too-large indices). (Mike
+ McCandless)
+
Optimizations
* LUCENE-3201, LUCENE-3218: CompoundFileSystem code has been consolidated
diff --git a/lucene/src/java/org/apache/lucene/util/SortedVIntList.java b/lucene/src/java/org/apache/lucene/util/SortedVIntList.java
index a89824b19e1..1b6957ac28a 100644
--- a/lucene/src/java/org/apache/lucene/util/SortedVIntList.java
+++ b/lucene/src/java/org/apache/lucene/util/SortedVIntList.java
@@ -33,6 +33,8 @@ import org.apache.lucene.search.DocIdSetIterator;
* extends {@link DocIdSet}). Therefore its {@link #iterator()} assumes {@link
* DocIdSetIterator#NO_MORE_DOCS} can be used as sentinel. If you intent to use
* this value, then make sure it's not used during search flow.
+ *
+ * @lucene.internal
*/
public class SortedVIntList extends DocIdSet {
/** When a BitSet has fewer than 1 in BITS2VINTLIST_SIZE bits set,
@@ -81,22 +83,6 @@ public class SortedVIntList extends DocIdSet {
builder.done();
}
- /**
- * Create a SortedVIntList from an OpenBitSet.
- * @param bits A bit set representing a set of integers.
- */
- /*
- public SortedVIntList(OpenBitSet bits) {
- SortedVIntListBuilder builder = new SortedVIntListBuilder();
- int nextInt = bits.nextSetBit(0);
- while (nextInt != -1) {
- builder.addInt(nextInt);
- nextInt = bits.nextSetBit(nextInt + 1);
- }
- builder.done();
- }
- */
-
/**
* Create a SortedVIntList.
* @param docIdSetIterator An iterator providing document numbers as a set of integers.