Class IndexUpdater


  • public class IndexUpdater
    extends Object
    Handle batch updates to an index.
    Since:
    7.1
    Author:
    gustavonalle
    • Constructor Detail

      • IndexUpdater

        public IndexUpdater​(org.hibernate.search.spi.SearchIntegrator searchIntegrator,
                            KeyTransformationHandler keyTransformationHandler,
                            org.infinispan.commons.time.TimeService timeService)
    • Method Detail

      • flush

        public void flush​(Collection<org.hibernate.search.spi.IndexedTypeIdentifier> entities)
      • purge

        public void purge​(Collection<org.hibernate.search.spi.IndexedTypeIdentifier> entities)
      • waitForAsyncCompletion

        public void waitForAsyncCompletion()
      • updateIndex

        public void updateIndex​(Object key,
                                Object value,
                                int segment)