org.compass.core.lucene.engine.transaction
Interface LuceneSearchEngineTransaction

All Known Implementing Classes:
AbstractTransaction, LuceneTransaction, ReadCommittedTransaction, SerializableTransaction

public interface LuceneSearchEngineTransaction

A Lucene transaction interface. All Lucene based transactions must implement the interface for the LuceneSearchEngine to work with them.

Author:
kimchy

Method Summary
 void begin()
           
 void commit(boolean onePhase)
           
 void configure(LuceneSearchEngine searchEngine)
           
 void create(InternalResource resource, Analyzer analyzer)
           
 void delete(ResourceKey resourceKey)
           
 SearchEngineHits find(SearchEngineQuery query)
           
 void flush()
          Supported only in batch insert transacitons.
 Resource[] get(ResourceKey resourceKey)
           
 SearchEngineInternalSearch internalSearch(String[] subIndexes, String[] aliases)
           
 boolean isDirty()
           
 void prepare()
           
 void removeDelegatedClose(LuceneDelegatedClose closable)
           
 void rollback()
           
 void update(InternalResource resource, Analyzer analyzer)
           
 

Method Detail

configure

void configure(LuceneSearchEngine searchEngine)

isDirty

boolean isDirty()

begin

void begin()
           throws SearchEngineException
Throws:
SearchEngineException

prepare

void prepare()
             throws SearchEngineException
Throws:
SearchEngineException

commit

void commit(boolean onePhase)
            throws SearchEngineException
Throws:
SearchEngineException

rollback

void rollback()
              throws SearchEngineException
Throws:
SearchEngineException

flush

void flush()
           throws SearchEngineException
Supported only in batch insert transacitons.

Throws:
SearchEngineException

create

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

update

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

delete

void delete(ResourceKey resourceKey)
            throws SearchEngineException
Throws:
SearchEngineException

find

SearchEngineHits find(SearchEngineQuery query)
                      throws SearchEngineException
Throws:
SearchEngineException

get

Resource[] get(ResourceKey resourceKey)
               throws SearchEngineException
Throws:
SearchEngineException

internalSearch

SearchEngineInternalSearch internalSearch(String[] subIndexes,
                                          String[] aliases)
                                          throws SearchEngineException
Throws:
SearchEngineException

removeDelegatedClose

void removeDelegatedClose(LuceneDelegatedClose closable)


Copyright (c) 2004-2008 The Compass Project.