org.xcmis.search.lucene.index
Class PersistentIndexDataKeeperFactory

java.lang.Object
  extended by org.xcmis.search.lucene.index.LuceneIndexDataKeeperFactory
      extended by org.xcmis.search.lucene.index.PersistentIndexDataKeeperFactory
All Implemented Interfaces:
IndexDataKeeperFactory<org.apache.lucene.document.Document,org.apache.lucene.analysis.Analyzer,org.apache.lucene.index.IndexReader>

public class PersistentIndexDataKeeperFactory
extends LuceneIndexDataKeeperFactory

Created by The eXo Platform SAS.

Version:
$Id: PersistentIndexDataKeeperFactory.java 2 2010-02-04 17:21:49Z andrew00x $
Author:
Sergey Kabashnyuk

Constructor Summary
PersistentIndexDataKeeperFactory(IndexConfiguration indexConfuguration)
           
 
Method Summary
 LuceneIndexDataManager createNewIndexDataKeeper(IndexTransaction<org.apache.lucene.document.Document> changes)
          
 File getIndexDir()
           
 List<PersistedIndex> init()
           
 LuceneIndexDataManager merge(Collection<LuceneIndexDataManager> chains)
          Merge two data keepers.
 
Methods inherited from class org.xcmis.search.lucene.index.LuceneIndexDataKeeperFactory
dispose
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PersistentIndexDataKeeperFactory

public PersistentIndexDataKeeperFactory(IndexConfiguration indexConfuguration)
                                 throws IndexException,
                                        IndexConfigurationException
Throws:
IndexException
IndexConfigurationException
Method Detail

createNewIndexDataKeeper

public LuceneIndexDataManager createNewIndexDataKeeper(IndexTransaction<org.apache.lucene.document.Document> changes)
                                                throws IndexException

Returns:
new index data keeper.
Throws:
IndexException

getIndexDir

public File getIndexDir()

init

public List<PersistedIndex> init()
                          throws IndexException
Throws:
IndexException

merge

public LuceneIndexDataManager merge(Collection<LuceneIndexDataManager> chains)
                             throws IndexException
Merge two data keepers.

Returns:
result index data keeper.
Throws:
IndexException


Copyright © 2011 eXo Platform SAS. All Rights Reserved.