org.compass.core.lucene.engine.optimizer
Class NullOptimizer

java.lang.Object
  extended by org.compass.core.lucene.engine.optimizer.AbstractOptimizer
      extended by org.compass.core.lucene.engine.optimizer.NullOptimizer
All Implemented Interfaces:
SearchEngineOptimizer, LuceneSearchEngineOptimizer

public class NullOptimizer
extends AbstractOptimizer

Author:
kimchy

Field Summary
 
Fields inherited from class org.compass.core.lucene.engine.optimizer.AbstractOptimizer
log
 
Constructor Summary
NullOptimizer()
           
 
Method Summary
 boolean canBeScheduled()
          Can the optimizer be scheduled or not.
protected  void doForceOptimize(String subIndex)
           
protected  void doOptimize(String subIndex)
           
 void forceOptimize()
          Optimzies the search engine regardless if it required optimization or not.
protected  boolean isOptimizeOnlyIfIndexChanged()
           
 void optimize()
          Optimizes the search engine index if it requires optimization.
 void optimize(String subIndex)
          Optimizes the sub index if it requires optimization.
 
Methods inherited from class org.compass.core.lucene.engine.optimizer.AbstractOptimizer
doStart, doStop, forceOptimize, getSearchEngineFactory, isRunning, setSearchEngineFactory, start, stop
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NullOptimizer

public NullOptimizer()
Method Detail

isOptimizeOnlyIfIndexChanged

protected boolean isOptimizeOnlyIfIndexChanged()

canBeScheduled

public boolean canBeScheduled()
Description copied from interface: LuceneSearchEngineOptimizer
Can the optimizer be scheduled or not.


optimize

public void optimize()
              throws SearchEngineException
Description copied from interface: SearchEngineOptimizer
Optimizes the search engine index if it requires optimization.

Specified by:
optimize in interface SearchEngineOptimizer
Overrides:
optimize in class AbstractOptimizer
Throws:
SearchEngineException

optimize

public void optimize(String subIndex)
              throws SearchEngineException
Description copied from interface: SearchEngineOptimizer
Optimizes the sub index if it requires optimization.

Specified by:
optimize in interface SearchEngineOptimizer
Overrides:
optimize in class AbstractOptimizer
Parameters:
subIndex - The sub index to optimize
Throws:
SearchEngineException

forceOptimize

public void forceOptimize()
                   throws SearchEngineException
Description copied from interface: SearchEngineOptimizer
Optimzies the search engine regardless if it required optimization or not.

Specified by:
forceOptimize in interface SearchEngineOptimizer
Overrides:
forceOptimize in class AbstractOptimizer
Throws:
SearchEngineException

doForceOptimize

protected void doForceOptimize(String subIndex)
                        throws SearchEngineException
Specified by:
doForceOptimize in class AbstractOptimizer
Throws:
SearchEngineException

doOptimize

protected void doOptimize(String subIndex)
                   throws SearchEngineException
Specified by:
doOptimize in class AbstractOptimizer
Throws:
SearchEngineException


Copyright (c) 2004-2008 The Compass Project.