You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by mi...@apache.org on 2011/07/11 19:40:30 UTC

svn commit: r1145255 - in /lucene/dev/trunk/lucene: CHANGES.txt src/java/org/apache/lucene/util/SortedVIntList.java

Author: mikemccand
Date: Mon Jul 11 17:40:30 2011
New Revision: 1145255

URL: http://svn.apache.org/viewvc?rev=1145255&view=rev
Log:
LUCENE-3280: add changes, remove dead code

Modified:
    lucene/dev/trunk/lucene/CHANGES.txt
    lucene/dev/trunk/lucene/src/java/org/apache/lucene/util/SortedVIntList.java

Modified: lucene/dev/trunk/lucene/CHANGES.txt
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/lucene/CHANGES.txt?rev=1145255&r1=1145254&r2=1145255&view=diff
==============================================================================
--- lucene/dev/trunk/lucene/CHANGES.txt (original)
+++ lucene/dev/trunk/lucene/CHANGES.txt Mon Jul 11 17:40:30 2011
@@ -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 

Modified: lucene/dev/trunk/lucene/src/java/org/apache/lucene/util/SortedVIntList.java
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/lucene/src/java/org/apache/lucene/util/SortedVIntList.java?rev=1145255&r1=1145254&r2=1145255&view=diff
==============================================================================
--- lucene/dev/trunk/lucene/src/java/org/apache/lucene/util/SortedVIntList.java (original)
+++ lucene/dev/trunk/lucene/src/java/org/apache/lucene/util/SortedVIntList.java Mon Jul 11 17:40:30 2011
@@ -33,6 +33,8 @@ import org.apache.lucene.search.DocIdSet
  * 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,
@@ -82,22 +84,6 @@ public class SortedVIntList extends DocI
   }
 
   /**
-   * 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.
    *                  This DocIdSetIterator is iterated completely when this constructor