lucene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mikemcc...@apache.org
Subject svn commit: r1690139 - /lucene/dev/trunk/lucene/core/src/java/org/apache/lucene/util/fst/Builder.java
Date Thu, 09 Jul 2015 18:49:29 GMT
Author: mikemccand
Date: Thu Jul  9 18:49:28 2015
New Revision: 1690139

URL: http://svn.apache.org/r1690139
Log:
improve javadocs

Modified:
    lucene/dev/trunk/lucene/core/src/java/org/apache/lucene/util/fst/Builder.java

Modified: lucene/dev/trunk/lucene/core/src/java/org/apache/lucene/util/fst/Builder.java
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/lucene/core/src/java/org/apache/lucene/util/fst/Builder.java?rev=1690139&r1=1690138&r2=1690139&view=diff
==============================================================================
--- lucene/dev/trunk/lucene/core/src/java/org/apache/lucene/util/fst/Builder.java (original)
+++ lucene/dev/trunk/lucene/core/src/java/org/apache/lucene/util/fst/Builder.java Thu Jul
 9 18:49:28 2015
@@ -339,8 +339,11 @@ public class Builder<T> {
   }
   */
 
-  /** It's OK to add the same input twice in a row with
-   *  different outputs, as long as outputs impls the merge
+  /** Add the next input/output pair.  The provided input
+   *  must be sorted after the previous one according to
+   *  {@link IntsRef#compareTo}.  It's also OK to add the same
+   *  input twice in a row with different outputs, as long
+   *  as {@link Outputs} implements the {@link Outputs#merge}
    *  method. Note that input is fully consumed after this
    *  method is returned (so caller is free to reuse), but
    *  output is not.  So if your outputs are changeable (eg



Mime
View raw message