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

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

public class TransIndex
extends Object
implements CompassConfigurable

Author:
kimchy

Constructor Summary
TransIndex(LuceneSearchEngineFactory searchEngineFactory, String subIndex)
           
 
Method Summary
 void close()
           
 void commit()
           
 void configure(CompassSettings settings)
          Configure using the given settings.
 void create(InternalResource resource, Analyzer analyzer)
           
 void delete(ResourceKey resourceKey)
           
 Directory getDirectory()
           
 IndexReader getReader()
           
 IndexSearcher getSearcher()
           
 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

TransIndex

public TransIndex(LuceneSearchEngineFactory searchEngineFactory,
                  String subIndex)
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()
                      throws IOException
Throws:
IOException

getSearcher

public IndexSearcher getSearcher()
                          throws IOException
Throws:
IOException

getDirectory

public Directory getDirectory()

commit

public void commit()
            throws IOException
Throws:
IOException

close

public void close()
           throws IOException
Throws:
IOException


Copyright (c) 2004-2008 The Compass Project.