"Keep in mind that BitSetIterator is fast for iteration over all it's bits.
If it's used as a filter (with skipping), I would expect it to be slower."

still, DenseBitsMatcher (BitSetIterator warpped in Matcher) works faster than 
anything else for this case:

 int skip(Matcher m) throws IOException{
     int doc=-1, ret = 0; 
     while(m.skipTo(doc+1)){
        doc = m.doc(); 
        ret+=doc;
      }
     return ret;
  }


for sparse bit sets, VInt thingy works the best 



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to