public interface IndexingMonitor
Modifier and Type | Method and Description |
---|---|
void |
documentsAdded(long increment)
Notify the monitor that
increment more documents have been added to the index. |
void documentsAdded(long increment)
increment
more documents have been added to the index.
Summing the numbers passed to this method gives the total number of documents that have been added to the index so far.
This method is invoked several times during indexing,
and calls are incremental:
calling documentsAdded(3)
and then documentsAdded(1)
should be understood as "3+1 documents, i.e. 4 documents have been added to the index".
This method can be invoked from several threads thus implementors are required to be thread-safe.
increment
- additional number of documents builtCopyright © 2006-2018 Red Hat, Inc. and others. Licensed under the GNU Lesser General Public License (LGPL), version 2.1 or later.