You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by rm...@apache.org on 2013/01/18 15:21:12 UTC
svn commit: r1435158 - in /lucene/dev/branches/branch_4x: ./ lucene/
lucene/codecs/
lucene/codecs/src/java/org/apache/lucene/codecs/memory/MemoryPostingsFormat.java
Author: rmuir
Date: Fri Jan 18 14:21:12 2013
New Revision: 1435158
URL: http://svn.apache.org/viewvc?rev=1435158&view=rev
Log:
javadocs
Modified:
lucene/dev/branches/branch_4x/ (props changed)
lucene/dev/branches/branch_4x/lucene/ (props changed)
lucene/dev/branches/branch_4x/lucene/codecs/ (props changed)
lucene/dev/branches/branch_4x/lucene/codecs/src/java/org/apache/lucene/codecs/memory/MemoryPostingsFormat.java
Modified: lucene/dev/branches/branch_4x/lucene/codecs/src/java/org/apache/lucene/codecs/memory/MemoryPostingsFormat.java
URL: http://svn.apache.org/viewvc/lucene/dev/branches/branch_4x/lucene/codecs/src/java/org/apache/lucene/codecs/memory/MemoryPostingsFormat.java?rev=1435158&r1=1435157&r2=1435158&view=diff
==============================================================================
--- lucene/dev/branches/branch_4x/lucene/codecs/src/java/org/apache/lucene/codecs/memory/MemoryPostingsFormat.java (original)
+++ lucene/dev/branches/branch_4x/lucene/codecs/src/java/org/apache/lucene/codecs/memory/MemoryPostingsFormat.java Fri Jan 18 14:21:12 2013
@@ -70,10 +70,6 @@ import org.apache.lucene.util.packed.Pac
* queries that rely on advance will (AND BooleanQuery,
* PhraseQuery) will be relatively slow!
*
- * <p><b>NOTE</b>: this codec cannot address more than ~2.1 GB
- * of postings, because the underlying FST uses an int
- * to address the underlying byte[].
- *
* @lucene.experimental */
// TODO: Maybe name this 'Cached' or something to reflect
@@ -88,6 +84,13 @@ public final class MemoryPostingsFormat
this(false, PackedInts.DEFAULT);
}
+ /**
+ * Create MemoryPostingsFormat, specifying advanced FST options.
+ * @param doPackFST true if a packed FST should be built.
+ * NOTE: packed FSTs are limited to ~2.1 GB of postings.
+ * @param acceptableOverheadRatio allowable overhead for packed ints
+ * during FST construction.
+ */
public MemoryPostingsFormat(boolean doPackFST, float acceptableOverheadRatio) {
super("Memory");
this.doPackFST = doPackFST;