org.compass.core.lucene.engine.transaction.readcommitted
Class TransIndexManager

java.lang.Object
  extended by org.compass.core.lucene.engine.transaction.readcommitted.TransIndexManager
All Implemented Interfaces:
CompassConfigurable

public class TransIndexManager
extends Object
implements CompassConfigurable

Author:
kimchy

Constructor Summary
TransIndexManager(LuceneSearchEngineFactory searchEngineFactory)
           
 
Method Summary
 void close(String subIndex)
           
 void commit()
           
 void commit(String subIndex)
           
 void configure(CompassSettings settings)
          Configure using the given settings.
 void create(InternalResource resource, Analyzer analyzer)
           
 void delete(ResourceKey resourceKey)
           
 Directory getDirectory(String subIndex)
           
 IndexReader getReader(String subIndex)
           
 IndexSearcher getSearcher(String subIndex)
           
 boolean hasTransactions()
           
 boolean hasTransIndex(String subIndex)
           
 void update(InternalResource resource, Analyzer analyzer)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TransIndexManager

public TransIndexManager(LuceneSearchEngineFactory searchEngineFactory)
Method Detail

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

create

public void create(InternalResource resource,
                   Analyzer analyzer)
            throws IOException
Throws:
IOException

update

public void update(InternalResource resource,
                   Analyzer analyzer)
            throws IOException
Throws:
IOException

delete

public void delete(ResourceKey resourceKey)
            throws IOException
Throws:
IOException

getReader

public IndexReader getReader(String subIndex)
                      throws IOException
Throws:
IOException

getSearcher

public IndexSearcher getSearcher(String subIndex)
                          throws IOException
Throws:
IOException

getDirectory

public Directory getDirectory(String subIndex)

hasTransactions

public boolean hasTransactions()

hasTransIndex

public boolean hasTransIndex(String subIndex)

commit

public void commit()
            throws IOException
Throws:
IOException

commit

public void commit(String subIndex)
            throws IOException
Throws:
IOException

close

public void close(String subIndex)
           throws IOException
Throws:
IOException


Copyright (c) 2004-2008 The Compass Project.