org.apache.lucene.gdata.utils
Class ModifiedEntryFilter
java.lang.Object
org.apache.lucene.search.Filter
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
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 |
ModifiedEntryFilter
public ModifiedEntryFilter(String[] entryIds,
String field)
- Creates a new
ModifiedEntryFilter
- Parameters:
entryIds
- the entry id's to filterfield
- - the field, the id is stored
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.