org.compass.gps.impl
Class DefaultReplaceIndexCallback

java.lang.Object
  extended by org.compass.gps.impl.DefaultReplaceIndexCallback
All Implemented Interfaces:
SearchEngineIndexManager.IndexOperationPlan, SearchEngineIndexManager.ReplaceIndexCallback

public class DefaultReplaceIndexCallback
extends Object
implements SearchEngineIndexManager.ReplaceIndexCallback, SearchEngineIndexManager.IndexOperationPlan

Author:
kimchy

Constructor Summary
DefaultReplaceIndexCallback(Collection<CompassGpsDevice> devices, IndexPlan indexPlan)
           
 
Method Summary
 void buildIndexIfNeeded()
          Provides the ability to be notified when the index can be built during the replace operation.
 String[] getAliases()
           
 String[] getSubIndexes()
           
 Class[] getTypes()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultReplaceIndexCallback

public DefaultReplaceIndexCallback(Collection<CompassGpsDevice> devices,
                                   IndexPlan indexPlan)
Method Detail

buildIndexIfNeeded

public void buildIndexIfNeeded()
                        throws SearchEngineException
Description copied from interface: SearchEngineIndexManager.ReplaceIndexCallback
Provides the ability to be notified when the index can be built during the replace operation. There is no need to actually build the index, if one already exists.

Specified by:
buildIndexIfNeeded in interface SearchEngineIndexManager.ReplaceIndexCallback
Throws:
SearchEngineException

getSubIndexes

public String[] getSubIndexes()
Specified by:
getSubIndexes in interface SearchEngineIndexManager.IndexOperationPlan

getAliases

public String[] getAliases()
Specified by:
getAliases in interface SearchEngineIndexManager.IndexOperationPlan

getTypes

public Class[] getTypes()
Specified by:
getTypes in interface SearchEngineIndexManager.IndexOperationPlan


Copyright (c) 2004-2008 The Compass Project.