org.compass.core.lucene.engine.transaction
Class BitSetByAliasFilter

java.lang.Object
  extended by org.apache.lucene.search.Filter
      extended by org.compass.core.lucene.engine.transaction.BitSetByAliasFilter
All Implemented Interfaces:
Serializable

public class BitSetByAliasFilter
extends Filter

A Lucene filter which stored deletion (per alias), and filters them when execution lucene operations.

Author:
kimchy
See Also:
Serialized Form

Constructor Summary
BitSetByAliasFilter()
           
 
Method Summary
 BitSet bits(IndexReader reader)
           
 void clear()
           
 ArrayList getDeletesBySubIndex(String subIndex)
           
 boolean hasDeletes()
           
 void markDeleteBySubIndex(String subIndex, int docNum, int maxDoc)
           
 Iterator subIndexDeletesIt()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BitSetByAliasFilter

public BitSetByAliasFilter()
Method Detail

clear

public void clear()

hasDeletes

public boolean hasDeletes()

getDeletesBySubIndex

public ArrayList getDeletesBySubIndex(String subIndex)

subIndexDeletesIt

public Iterator subIndexDeletesIt()

markDeleteBySubIndex

public void markDeleteBySubIndex(String subIndex,
                                 int docNum,
                                 int maxDoc)

bits

public BitSet bits(IndexReader reader)
            throws IOException
Specified by:
bits in class Filter
Throws:
IOException


Copyright (c) 2004-2006 The Compass Project.