public interface MassIndexerProgressMonitor extends IndexingMonitor
Implementations must:
Modifier and Type | Method and Description |
---|---|
void |
addToTotalCount(long increment)
Notify the monitor that
increment more entities have been
detected in the database and will be indexed. |
void |
documentsBuilt(int increment)
Notify the monitor that
increment more documents have been built. |
void |
entitiesLoaded(int increment)
Notify the monitor that
increment more entities have been loaded from the database. |
void |
indexingCompleted()
Notify the monitor that indexing is complete.
|
documentsAdded
void documentsBuilt(int increment)
increment
more documents have been built.
Summing the numbers passed to this method gives the total number of documents that have been built so far.
This method is invoked several times during indexing,
and calls are incremental:
calling documentsBuilt(3)
and then documentsBuilt(1)
should be understood as "3+1 documents, i.e. 4 documents have been built".
This method can be invoked from several threads thus implementors are required to be thread-safe.
increment
- additional number of documents builtvoid entitiesLoaded(int increment)
increment
more entities have been loaded from the database.
Summing the numbers passed to this method gives the total number of entities that have been loaded so far.
This method is invoked several times during indexing,
and calls are incremental:
calling entitiesLoaded(3)
and then entitiesLoaded(1)
should be understood as "3+1 documents, i.e. 4 documents have been loaded".
This method can be invoked from several threads thus implementors are required to be thread-safe.
increment
- additional number of entities loaded from databasevoid addToTotalCount(long increment)
increment
more entities have been
detected in the database and will be indexed.
Summing the numbers passed to this method gives the total number of entities that Hibernate Search plans to index. This number can be incremented during indexing as Hibernate Search moves from one entity type to the next.
This method is invoked several times during indexing,
and calls are incremental:
calling addToTotalCount(3)
and then addToTotalCount(1)
should be understood as "3+1 documents, i.e. 4 documents will be indexed".
This method can be invoked from several threads thus implementors are required to be thread-safe.
increment
- additional number of entities that will be indexedvoid indexingCompleted()
Copyright © 2006-2019 Red Hat, Inc. and others. Licensed under the GNU Lesser General Public License (LGPL), version 2.1 or later.