Class AffinityIndexManager

  • All Implemented Interfaces:
    org.hibernate.search.indexes.spi.IndexManager

    public class AffinityIndexManager
    extends org.hibernate.search.indexes.spi.DirectoryBasedIndexManager
    IndexManager that splits the index into shards.
    Since:
    8.2
    Author:
    gustavonalle
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected org.hibernate.search.store.DirectoryProvider<?> createDirectoryProvider​(java.lang.String indexName, java.util.Properties cfg, org.hibernate.search.spi.WorkerBuildContext buildContext)  
      void flushAndReleaseResources()  
      void initialize​(java.lang.String indexName, java.util.Properties properties, org.apache.lucene.search.similarities.Similarity similarity, org.hibernate.search.spi.WorkerBuildContext buildContext)  
      void onTopologyChange​(TopologyChangedEvent<?,​?> tce)  
      void performOperations​(java.util.List<org.hibernate.search.backend.LuceneWork> workList, org.hibernate.search.backend.IndexingMonitor monitor)  
      • Methods inherited from class org.hibernate.search.indexes.spi.DirectoryBasedIndexManager

        addContainedEntity, awaitAsyncProcessingCompletion, createIndexReader, createWorkspaceHolder, destroy, getAnalyzer, getContainedTypes, getDirectoryModificationLock, getDirectoryProvider, getIndexBinding, getIndexingParameters, getIndexManagerType, getIndexName, getOptimizerStrategy, getReaderProvider, getSerializer, getSimilarity, getWorkspaceHolder, optimize, performStreamOperation, setSearchFactory, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • AffinityIndexManager

        public AffinityIndexManager()
    • Method Detail

      • initialize

        public void initialize​(java.lang.String indexName,
                               java.util.Properties properties,
                               org.apache.lucene.search.similarities.Similarity similarity,
                               org.hibernate.search.spi.WorkerBuildContext buildContext)
        Specified by:
        initialize in interface org.hibernate.search.indexes.spi.IndexManager
        Overrides:
        initialize in class org.hibernate.search.indexes.spi.DirectoryBasedIndexManager
      • flushAndReleaseResources

        public void flushAndReleaseResources()
        Specified by:
        flushAndReleaseResources in interface org.hibernate.search.indexes.spi.IndexManager
        Overrides:
        flushAndReleaseResources in class org.hibernate.search.indexes.spi.DirectoryBasedIndexManager
      • performOperations

        public void performOperations​(java.util.List<org.hibernate.search.backend.LuceneWork> workList,
                                      org.hibernate.search.backend.IndexingMonitor monitor)
        Specified by:
        performOperations in interface org.hibernate.search.indexes.spi.IndexManager
        Overrides:
        performOperations in class org.hibernate.search.indexes.spi.DirectoryBasedIndexManager
      • createDirectoryProvider

        protected org.hibernate.search.store.DirectoryProvider<?> createDirectoryProvider​(java.lang.String indexName,
                                                                                          java.util.Properties cfg,
                                                                                          org.hibernate.search.spi.WorkerBuildContext buildContext)
        Overrides:
        createDirectoryProvider in class org.hibernate.search.indexes.spi.DirectoryBasedIndexManager