org.xcmis.search.lucene
Class LuceneQueryableIndexStorage

java.lang.Object
  extended by org.xcmis.search.content.interceptors.AbstractVisitor
      extended by org.xcmis.search.content.interceptors.CommandInterceptor
          extended by org.xcmis.search.content.interceptors.QueryableIndexStorage
              extended by org.xcmis.search.lucene.AbstractLuceneQueryableIndexStorage
                  extended by org.xcmis.search.lucene.LuceneQueryableIndexStorage
All Implemented Interfaces:
Visitor, Startable

public class LuceneQueryableIndexStorage
extends AbstractLuceneQueryableIndexStorage

Lucene persisted implementation of QueryableIndexStorage.


Field Summary
 
Fields inherited from class org.xcmis.search.lucene.AbstractLuceneQueryableIndexStorage
indexConfuguration, MAX_FETCH_SIZE, nameConverter, nodeIndexer, pathSplitter, tableResolver
 
Fields inherited from class org.xcmis.search.content.interceptors.QueryableIndexStorage
serviceConfuguration
 
Constructor Summary
LuceneQueryableIndexStorage(SearchServiceConfiguration serviceConfuguration)
           
 
Method Summary
protected  org.apache.lucene.document.Document getDocument(String uuid, org.apache.lucene.index.IndexReader reader)
           
protected  org.apache.lucene.index.IndexReader getIndexReader()
          Different lucene storage's should override this method.
protected  Object save(LuceneIndexTransaction indexTransaction)
           
 void start()
           
 void stop()
           
 
Methods inherited from class org.xcmis.search.lucene.AbstractLuceneQueryableIndexStorage
getConstrainQuery, visitExecuteSelectorCommand, visitModifyIndexCommand
 
Methods inherited from class org.xcmis.search.content.interceptors.CommandInterceptor
getNext, handleDefault, hasNext, invokeNextInterceptor, setNext
 
Methods inherited from class org.xcmis.search.content.interceptors.AbstractVisitor
visitChildEntriesCommand, visitGetContentEntryCommand, visitGetUnfiledEntriesCommand, visitProcessQueryCommand
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LuceneQueryableIndexStorage

public LuceneQueryableIndexStorage(SearchServiceConfiguration serviceConfuguration)
                            throws IndexException
Parameters:
indexConfuguration -
Throws:
IndexException
IndexException
Method Detail

start

public void start()
Specified by:
start in interface Startable
Overrides:
start in class CommandInterceptor
See Also:
CommandInterceptor.start()

stop

public void stop()
Specified by:
stop in interface Startable
Overrides:
stop in class CommandInterceptor
See Also:
CommandInterceptor.stop()

getIndexReader

protected org.apache.lucene.index.IndexReader getIndexReader()
                                                      throws IndexException
Description copied from class: AbstractLuceneQueryableIndexStorage
Different lucene storage's should override this method.

Specified by:
getIndexReader in class AbstractLuceneQueryableIndexStorage
Throws:
IndexException
See Also:
AbstractLuceneQueryableIndexStorage.getIndexReader()

getDocument

protected org.apache.lucene.document.Document getDocument(String uuid,
                                                          org.apache.lucene.index.IndexReader reader)
                                                   throws IndexException
Throws:
IndexException

save

protected Object save(LuceneIndexTransaction indexTransaction)
               throws IndexException,
                      IndexTransactionException
Specified by:
save in class AbstractLuceneQueryableIndexStorage
Returns:
Throws:
IndexTransactionException
IndexException
See Also:
AbstractLuceneQueryableIndexStorage.save(org.xcmis.search.lucene.index.LuceneIndexTransaction)


Copyright © 2003-2013 eXo Platform SAS. All Rights Reserved.