You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by mi...@apache.org on 2011/02/26 18:07:13 UTC
svn commit: r1074880 -
/lucene/dev/trunk/lucene/src/java/org/apache/lucene/util/automaton/fst/Builder.java
Author: mikemccand
Date: Sat Feb 26 17:07:13 2011
New Revision: 1074880
URL: http://svn.apache.org/viewvc?rev=1074880&view=rev
Log:
number of unique terms may not fit in int
Modified:
lucene/dev/trunk/lucene/src/java/org/apache/lucene/util/automaton/fst/Builder.java
Modified: lucene/dev/trunk/lucene/src/java/org/apache/lucene/util/automaton/fst/Builder.java
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/lucene/src/java/org/apache/lucene/util/automaton/fst/Builder.java?rev=1074880&r1=1074879&r2=1074880&view=diff
==============================================================================
--- lucene/dev/trunk/lucene/src/java/org/apache/lucene/util/automaton/fst/Builder.java (original)
+++ lucene/dev/trunk/lucene/src/java/org/apache/lucene/util/automaton/fst/Builder.java Sat Feb 26 17:07:13 2011
@@ -91,7 +91,7 @@ public class Builder<T> {
return fst.nodeCount;
}
- public int getTermCount() {
+ public long getTermCount() {
return frontier[0].inputCount;
}
@@ -422,7 +422,7 @@ public class Builder<T> {
Arc<T>[] arcs;
T output;
boolean isFinal;
- int inputCount;
+ long inputCount;
/** This node's depth, starting from the automaton root. */
final int depth;