lucene-java-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From o...@apache.org
Subject svn commit: r414739 - in /lucene/java/trunk: CHANGES.txt src/java/org/apache/lucene/store/RAMDirectory.java src/java/org/apache/lucene/store/RAMFile.java
Date Fri, 16 Jun 2006 05:20:50 GMT
Author: otis
Date: Thu Jun 15 22:20:49 2006
New Revision: 414739

URL: http://svn.apache.org/viewvc?rev=414739&view=rev
Log:
- LUCENE-601: RAMDirectory and RAMFile made Seriazable.  Thanks Karl.

Modified:
    lucene/java/trunk/CHANGES.txt
    lucene/java/trunk/src/java/org/apache/lucene/store/RAMDirectory.java
    lucene/java/trunk/src/java/org/apache/lucene/store/RAMFile.java

Modified: lucene/java/trunk/CHANGES.txt
URL: http://svn.apache.org/viewvc/lucene/java/trunk/CHANGES.txt?rev=414739&r1=414738&r2=414739&view=diff
==============================================================================
--- lucene/java/trunk/CHANGES.txt (original)
+++ lucene/java/trunk/CHANGES.txt Thu Jun 15 22:20:49 2006
@@ -37,6 +37,9 @@
     (Chris Hostetter)
 
  5. Fix to allow MatchAllDocsQuery to be used with RemoteSearcher (Yonik Seeley)
+
+ 6. LUCENE-601: RAMDirectory and RAMFile made Serializable
+    (Karl Wettin via Otis Gospodnetic)
     
 Optimizations
 

Modified: lucene/java/trunk/src/java/org/apache/lucene/store/RAMDirectory.java
URL: http://svn.apache.org/viewvc/lucene/java/trunk/src/java/org/apache/lucene/store/RAMDirectory.java?rev=414739&r1=414738&r2=414739&view=diff
==============================================================================
--- lucene/java/trunk/src/java/org/apache/lucene/store/RAMDirectory.java (original)
+++ lucene/java/trunk/src/java/org/apache/lucene/store/RAMDirectory.java Thu Jun 15 22:20:49
2006
@@ -18,6 +18,7 @@
 
 import java.io.IOException;
 import java.io.File;
+import java.io.Serializable;
 import java.util.Hashtable;
 import java.util.Enumeration;
 
@@ -30,7 +31,10 @@
  *
  * @version $Id$
  */
-public final class RAMDirectory extends Directory {
+public final class RAMDirectory extends Directory implements Serializable {
+
+  private static final long serialVersionUID = 1l;
+
   Hashtable files = new Hashtable();
 
   /** Constructs an empty {@link Directory}. */

Modified: lucene/java/trunk/src/java/org/apache/lucene/store/RAMFile.java
URL: http://svn.apache.org/viewvc/lucene/java/trunk/src/java/org/apache/lucene/store/RAMFile.java?rev=414739&r1=414738&r2=414739&view=diff
==============================================================================
--- lucene/java/trunk/src/java/org/apache/lucene/store/RAMFile.java (original)
+++ lucene/java/trunk/src/java/org/apache/lucene/store/RAMFile.java Thu Jun 15 22:20:49 2006
@@ -17,8 +17,12 @@
  */
 
 import java.util.Vector;
+import java.io.Serializable;
+
+class RAMFile implements Serializable {
+
+  private static final long serialVersionUID = 1l;
 
-class RAMFile {
   Vector buffers = new Vector();
   long length;
   long lastModified = System.currentTimeMillis();



Mime
View raw message