FileDocCategorySizeDatePackage
IndexFeedDeleteTask.javaAPI DocApache Lucene 2.1.03864Wed Feb 14 10:46:06 GMT 2007org.apache.lucene.gdata.search.index

IndexFeedDeleteTask

public class IndexFeedDeleteTask extends Object implements IndexDocumentBuilder
This IndexDocumentBuilder deletes a entire feed form the index the builder is passed to if the feed has any entries in the search index. Each created and passed IndexFeedDeleteTask forces a commit.
author
Simon Willnauer

Fields Summary
private final String
feedId
Constructors Summary
IndexFeedDeleteTask(String feedId)

        if (feedId == null)
            throw new IllegalArgumentException("feedId must not be null");
        this.feedId = feedId;

    
Methods Summary
public IndexDocumentcall()

see
org.apache.lucene.gdata.search.index.IndexDocumentBuilder#call()

        return new FeedDeleteDocument(this.feedId);
        
    
public booleanequals(java.lang.Object obj)

see
java.lang.Object#equals(java.lang.Object)

        if(obj == null)
            return false;
        if (obj instanceof IndexFeedDeleteTask) {
            IndexFeedDeleteTask other = (IndexFeedDeleteTask) obj;
            return this.feedId.equals(other.feedId);
            
        }
        return false;
    
public inthashCode()

see
java.lang.Object#hashCode()

        
        return this.feedId.hashCode();