Revision: 17381
http://sourceforge.net/p/gate/code/17381
Author: valyt
Date: 2014-02-21 11:35:47 +0000 (Fri, 21 Feb 2014)
Log Message:
-----------
Added a note to the javadocs, while reviewing the threading and synchronization.
Modified Paths:
--------------
mimir/branches/5.0/mimir-core/src/gate/mimir/MimirIndex.java
Modified: mimir/branches/5.0/mimir-core/src/gate/mimir/MimirIndex.java
===================================================================
--- mimir/branches/5.0/mimir-core/src/gate/mimir/MimirIndex.java
2014-02-21 10:44:50 UTC (rev 17380)
+++ mimir/branches/5.0/mimir-core/src/gate/mimir/MimirIndex.java
2014-02-21 11:35:47 UTC (rev 17381)
@@ -164,6 +164,8 @@
* <ul>
* <li>check that the documents are being returned from the sub-indexers
* in the same order as they were submitted for indexing;</li>
+ * <li>update the {@link MimirIndex#occurrencesInRam} value by adding the
+ * occurrences produced by indexing new documents.</li>
* <li>delete indexed documents from GATE</li>
* </ul>
*/
@@ -219,6 +221,11 @@
* <li>compact the document collection when too many archive files have
* been created.</li>
* </ul>
+ *
+ * We use a different background thread (instead of adding more work to
+ * {@link IndexMaintenanceRunner} because each of the threads gets its tasks
+ * for a different blocking queue, which allows us to sleep the background
+ * threads while they're not needed.
*/
protected class IndexMaintenanceRunner2 implements Runnable {
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Managing the Performance of Cloud-Based Applications
Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.
Read the Whitepaper.
http://pubads.g.doubleclick.net/gampad/clk?id=121054471&iu=/4140/ostg.clktrk
_______________________________________________
GATE-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gate-cvs