org.compass.core.lucene.engine.store
Class JdbcLuceneSearchEngineStore

java.lang.Object
  extended by org.compass.core.lucene.engine.store.AbstractLuceneSearchEngineStore
      extended by org.compass.core.lucene.engine.store.JdbcLuceneSearchEngineStore
All Implemented Interfaces:
LuceneSearchEngineStore

public class JdbcLuceneSearchEngineStore
extends AbstractLuceneSearchEngineStore

Author:
kimchy

Nested Class Summary
 
Nested classes/interfaces inherited from class org.compass.core.lucene.engine.store.AbstractLuceneSearchEngineStore
AbstractLuceneSearchEngineStore.CopyFromHolder
 
Nested classes/interfaces inherited from interface org.compass.core.lucene.engine.store.LuceneSearchEngineStore
LuceneSearchEngineStore.LuceneStoreCallback
 
Field Summary
 
Fields inherited from class org.compass.core.lucene.engine.store.AbstractLuceneSearchEngineStore
connectionString, log, subContext, template
 
Constructor Summary
JdbcLuceneSearchEngineStore(String url, String subContext)
           
 
Method Summary
 void configure(LuceneSearchEngineFactory searchEngineFactory, CompassSettings settings, CompassMapping mapping)
          Configures the store.
 void createIndex()
          Creates the index (if it is already exists, delets it first).
protected  AbstractLuceneSearchEngineStore.CopyFromHolder doBeforeCopyFrom()
           
protected  void doClose()
           
protected  void doDeleteIndex()
           
protected  Directory doOpenDirectoryBySubIndex(String subIndex, boolean create)
           
protected  Boolean indexExists(Directory dir)
           
 void performScheduledTasks()
          Performs any scheduled tasks, managed by the index manager.
 void registerEventListeners(SearchEngine searchEngine, SearchEngineEventManager eventManager)
          A callback to register event listeners when a SearchEngine is created.
 
Methods inherited from class org.compass.core.lucene.engine.store.AbstractLuceneSearchEngineStore
calcSubIndexes, close, closeDirectories, closeDirectory, copyFrom, deleteIndex, doAfterFailedCopyFrom, doAfterSuccessfulCopyFrom, getDirectoryBySubIndex, getLuceneSettings, getNumberOfAliasesBySubIndex, getSubIndexes, indexExists, indexExists, isLocked, isLocked, releaseLock, releaseLocks, toString, verifyIndex, verifyIndex
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

JdbcLuceneSearchEngineStore

public JdbcLuceneSearchEngineStore(String url,
                                   String subContext)
Method Detail

configure

public void configure(LuceneSearchEngineFactory searchEngineFactory,
                      CompassSettings settings,
                      CompassMapping mapping)
               throws CompassException
Description copied from interface: LuceneSearchEngineStore
Configures the store.

Specified by:
configure in interface LuceneSearchEngineStore
Overrides:
configure in class AbstractLuceneSearchEngineStore
Throws:
CompassException

doClose

protected void doClose()
Overrides:
doClose in class AbstractLuceneSearchEngineStore

performScheduledTasks

public void performScheduledTasks()
                           throws SearchEngineException
Description copied from interface: LuceneSearchEngineStore
Performs any scheduled tasks, managed by the index manager.

Specified by:
performScheduledTasks in interface LuceneSearchEngineStore
Overrides:
performScheduledTasks in class AbstractLuceneSearchEngineStore
Throws:
SearchEngineException

doOpenDirectoryBySubIndex

protected Directory doOpenDirectoryBySubIndex(String subIndex,
                                              boolean create)
                                       throws SearchEngineException
Specified by:
doOpenDirectoryBySubIndex in class AbstractLuceneSearchEngineStore
Throws:
SearchEngineException

createIndex

public void createIndex()
                 throws SearchEngineException
Description copied from interface: LuceneSearchEngineStore
Creates the index (if it is already exists, delets it first).

Specified by:
createIndex in interface LuceneSearchEngineStore
Overrides:
createIndex in class AbstractLuceneSearchEngineStore
Throws:
SearchEngineException

doDeleteIndex

protected void doDeleteIndex()
                      throws SearchEngineException
Specified by:
doDeleteIndex in class AbstractLuceneSearchEngineStore
Throws:
SearchEngineException

indexExists

protected Boolean indexExists(Directory dir)
                       throws IOException
Overrides:
indexExists in class AbstractLuceneSearchEngineStore
Throws:
IOException

registerEventListeners

public void registerEventListeners(SearchEngine searchEngine,
                                   SearchEngineEventManager eventManager)
Description copied from interface: LuceneSearchEngineStore
A callback to register event listeners when a SearchEngine is created.

Specified by:
registerEventListeners in interface LuceneSearchEngineStore
Overrides:
registerEventListeners in class AbstractLuceneSearchEngineStore
Parameters:
searchEngine - The search engine created
eventManager - The event manager to register events with

doBeforeCopyFrom

protected AbstractLuceneSearchEngineStore.CopyFromHolder doBeforeCopyFrom()
                                                                   throws SearchEngineException
Overrides:
doBeforeCopyFrom in class AbstractLuceneSearchEngineStore
Throws:
SearchEngineException


Copyright (c) 2004-2006 The Compass Project.