Interface IndexListener

public interface IndexListener

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

See Also:

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


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.

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.