org.compass.core.lucene.engine.optimizer
Class AdaptiveOptimizer
java.lang.Object
org.compass.core.lucene.engine.optimizer.AbstractOptimizer
org.compass.core.lucene.engine.optimizer.AdaptiveOptimizer
- All Implemented Interfaces:
- CompassConfigurable, SearchEngineOptimizer, LuceneSearchEngineOptimizer
public class AdaptiveOptimizer
- extends AbstractOptimizer
- implements CompassConfigurable
- Author:
- kimchy
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AdaptiveOptimizer
public AdaptiveOptimizer()
configure
public void configure(CompassSettings settings)
throws CompassException
- Description copied from interface:
CompassConfigurable
- Configure using the given settings.
- Specified by:
configure in interface CompassConfigurable
- Parameters:
settings - The settings for the configured object
- Throws:
CompassException
canBeScheduled
public boolean canBeScheduled()
- Description copied from interface:
LuceneSearchEngineOptimizer
- Can the optimizer be scheduled or not.
- Specified by:
canBeScheduled in interface LuceneSearchEngineOptimizer
isOptimizeOnlyIfIndexChanged
protected boolean isOptimizeOnlyIfIndexChanged()
doOptimize
protected void doOptimize(String subIndex)
throws SearchEngineException
- Specified by:
doOptimize in class AbstractOptimizer
- Throws:
SearchEngineException
Copyright (c) 2004-2008 The Compass Project.