Revision: 17322
          http://sourceforge.net/p/gate/code/17322
Author:   valyt
Date:     2014-02-17 13:11:24 +0000 (Mon, 17 Feb 2014)
Log Message:
-----------
Allow more entries in zip files. WHen indexing tweets or sentences, 65000 is 
really not a lot.

Modified Paths:
--------------
    mimir/branches/5.0/mimir-core/src/gate/mimir/index/DocumentCollection.java

Modified: 
mimir/branches/5.0/mimir-core/src/gate/mimir/index/DocumentCollection.java
===================================================================
--- mimir/branches/5.0/mimir-core/src/gate/mimir/index/DocumentCollection.java  
2014-02-17 11:11:40 UTC (rev 17321)
+++ mimir/branches/5.0/mimir-core/src/gate/mimir/index/DocumentCollection.java  
2014-02-17 13:11:24 UTC (rev 17322)
@@ -342,12 +342,12 @@
     
   /**
    * The maximum number of entries to write to a single zip file.
-   * Java 1.5 only support 2^16 entries, so the default limit is set below 
that.
+   * Java 1.5 only support 2^16 entries.
    * If running on Java 1.6, this limit can safely be increased, however, the
    * total size of the file (as specified by {@link #ZIP_FILE_MAX_SIZE}) 
should 
    * not be greater than 4GB, in either case.
    */
-  public static final int ZIP_FILE_MAX_ENTRIES = 65530;
+  public static final int ZIP_FILE_MAX_ENTRIES = 250000;
   
 
   
@@ -538,6 +538,7 @@
    * @throws IndexException 
    */
   public synchronized void compact() throws ZipException, IOException, 
IndexException {
+    logger.debug("Starting collection compact.");
     // find an interval of files that can be joined together
     // we search from the end toward the start so that we can modify the 
     // list without changing the yet-unvisited IDs.

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.


------------------------------------------------------------------------------
Android apps run on BlackBerry 10
Introducing the new BlackBerry 10.2.1 Runtime for Android apps.
Now with support for Jelly Bean, Bluetooth, Mapview and more.
Get your Android app in front of a whole new audience.  Start now.
http://pubads.g.doubleclick.net/gampad/clk?id=124407151&iu=/4140/ostg.clktrk
_______________________________________________
GATE-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gate-cvs

Reply via email to