org.apache.lucene.gdata.utils
Class ModifiedEntryFilter

java.lang.Object
  extended by org.apache.lucene.search.Filter
      extended by org.apache.lucene.gdata.utils.ModifiedEntryFilter
All Implemented Interfaces:
Serializable

public class ModifiedEntryFilter
extends Filter

The ModifiedEntryFilter filters the given entryIds from the lucene Hits set. This filter is used to prevent the storage from retrieving already deleted or updated entries still remaining in the StorageBuffer.

Author:
Simon Willnauer
See Also:
Filter, Serialized Form

Constructor Summary
ModifiedEntryFilter(String[] entryIds, String field)
          Creates a new ModifiedEntryFilter
 
Method Summary
 BitSet bits(IndexReader reader)
          Returns a BitSet with true for documents which should be permitted in search results, and false for those that should not.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ModifiedEntryFilter

public ModifiedEntryFilter(String[] entryIds,
                           String field)
Creates a new ModifiedEntryFilter

Parameters:
entryIds - the entry id's to filter
field - - the field, the id is stored
Method Detail

bits

public BitSet bits(IndexReader reader)
            throws IOException
Description copied from class: Filter
Returns a BitSet with true for documents which should be permitted in search results, and false for those that should not.

Specified by:
bits in class Filter
Throws:
IOException
See Also:
Filter.bits(org.apache.lucene.index.IndexReader)


Copyright © 2000-2008 Apache Software Foundation. All Rights Reserved.