com.atlassian.confluence.search.lucene.queue
Class DefaultIndexQueueEntryFilter

java.lang.Object
  extended by com.atlassian.confluence.search.lucene.queue.DefaultIndexQueueEntryFilter
All Implemented Interfaces:
IndexQueueEntryFilter

public class DefaultIndexQueueEntryFilter
extends Object
implements IndexQueueEntryFilter

Responsible for removing/filtering index queue entries that are redundant.

For example, this removes ADD and UPDATE entries for a particular piece of content from the queue when it encounters a DELETE or UPDATE entry. ADDs and UPDATEs are redundant (and cannot run) after a DELETE has been queued (and the object removed).

This implementation assumes that adds, updates and deletes are queued in that order and that ordering of tasks for different pieces of content doesn't matter


Constructor Summary
DefaultIndexQueueEntryFilter()
           
 
Method Summary
 List<IndexQueueEntry> filter(List<IndexQueueEntry> entries)
          Takes the provided list, filters it and returns a new list containing the result
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultIndexQueueEntryFilter

public DefaultIndexQueueEntryFilter()
Method Detail

filter

public List<IndexQueueEntry> filter(List<IndexQueueEntry> entries)
Description copied from interface: IndexQueueEntryFilter
Takes the provided list, filters it and returns a new list containing the result

Specified by:
filter in interface IndexQueueEntryFilter
Parameters:
entries - the entries to filter
Returns:
a new list containing a filtered down version of entries


Copyright © 2003-2012 Atlassian. All Rights Reserved.