com.sun.labs.minion
Interface IndexListener


public interface IndexListener

An interface that clients can implement to be notified when things happen in an index.

See Also:
SearchEngine.addIndexListener(com.sun.labs.minion.IndexListener)

Method Summary
 void partitionAdded(SearchEngine e, java.util.Set<java.lang.Object> keys)
          Indicates that a new partition has been added to the index.
 

Method Detail

partitionAdded

void partitionAdded(SearchEngine e,
                    java.util.Set<java.lang.Object> keys)
Indicates that a new partition has been added to the index. This method will only be called when data is dumped into the index by indexing activity (that is, it will not be called when a new partition is added due to merging existing partitions.). When this method is called, the data will be available for searching, etc. using the search engine's API.

Parameters:
e - the engine that contains the partition that was dumped
keys - the keys of the documents that are in the newly dumped partition. The elements of the set can be safely cast to String.