lucene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rm...@apache.org
Subject svn commit: r1237067 - in /lucene/dev/branches/lucene3661/lucene/src/java/org/apache/lucene/codecs: Codec.java LiveDocsFormat.java
Date Sat, 28 Jan 2012 14:59:48 GMT
Author: rmuir
Date: Sat Jan 28 14:59:48 2012
New Revision: 1237067

URL: http://svn.apache.org/viewvc?rev=1237067&view=rev
Log:
LUCENE-3661: javadocs

Modified:
    lucene/dev/branches/lucene3661/lucene/src/java/org/apache/lucene/codecs/Codec.java
    lucene/dev/branches/lucene3661/lucene/src/java/org/apache/lucene/codecs/LiveDocsFormat.java

Modified: lucene/dev/branches/lucene3661/lucene/src/java/org/apache/lucene/codecs/Codec.java
URL: http://svn.apache.org/viewvc/lucene/dev/branches/lucene3661/lucene/src/java/org/apache/lucene/codecs/Codec.java?rev=1237067&r1=1237066&r2=1237067&view=diff
==============================================================================
--- lucene/dev/branches/lucene3661/lucene/src/java/org/apache/lucene/codecs/Codec.java (original)
+++ lucene/dev/branches/lucene3661/lucene/src/java/org/apache/lucene/codecs/Codec.java Sat
Jan 28 14:59:48 2012
@@ -22,6 +22,7 @@ import java.util.Set;
 
 import org.apache.lucene.index.SegmentInfo;
 import org.apache.lucene.util.NamedSPILoader;
+import org.apache.lucene.store.CompoundFileDirectory;
 import org.apache.lucene.store.Directory;
 
 /**
@@ -43,7 +44,11 @@ public abstract class Codec implements N
     return name;
   }
   
+  /** Populates <code>files</code> with all filenames needed for 
+   * the <code>info</code> segment.
+   */
   public void files(Directory dir, SegmentInfo info, Set<String> files) throws IOException
{
+    assert (dir instanceof CompoundFileDirectory) == false;
     postingsFormat().files(dir, info, "", files);
     storedFieldsFormat().files(dir, info, files);
     termVectorsFormat().files(dir, info, files);
@@ -54,6 +59,9 @@ public abstract class Codec implements N
     normsFormat().files(dir, info, files);
   }
   
+  /** Populates <code>files</code> with any filenames that are
+   * stored outside of CFS for the <code>info</code> segment.
+   */
   public void separateFiles(Directory dir, SegmentInfo info, Set<String> files) throws
IOException {
     liveDocsFormat().separateFiles(dir, info, files);
     normsFormat().separateFiles(dir, info, files);

Modified: lucene/dev/branches/lucene3661/lucene/src/java/org/apache/lucene/codecs/LiveDocsFormat.java
URL: http://svn.apache.org/viewvc/lucene/dev/branches/lucene3661/lucene/src/java/org/apache/lucene/codecs/LiveDocsFormat.java?rev=1237067&r1=1237066&r2=1237067&view=diff
==============================================================================
--- lucene/dev/branches/lucene3661/lucene/src/java/org/apache/lucene/codecs/LiveDocsFormat.java
(original)
+++ lucene/dev/branches/lucene3661/lucene/src/java/org/apache/lucene/codecs/LiveDocsFormat.java
Sat Jan 28 14:59:48 2012
@@ -26,10 +26,16 @@ import org.apache.lucene.store.IOContext
 import org.apache.lucene.util.Bits;
 import org.apache.lucene.util.MutableBits;
 
+/** Format for live/deleted documents
+ * @lucene.experimental */
 public abstract class LiveDocsFormat {
+  /** creates a new mutablebits, with all bits set, for the specified size */
   public abstract MutableBits newLiveDocs(int size) throws IOException;
+  /** creates a new mutablebits of the same bits set and size of existing */
   public abstract MutableBits newLiveDocs(Bits existing) throws IOException;
+  /** reads bits from a file */
   public abstract Bits readLiveDocs(Directory dir, SegmentInfo info, IOContext context) throws
IOException;
+  /** writes bits to a file */
   public abstract void writeLiveDocs(MutableBits bits, Directory dir, SegmentInfo info, IOContext
context) throws IOException;
   public abstract void separateFiles(Directory dir, SegmentInfo info, Set<String> files)
throws IOException;
 }



Mime
View raw message