improve variable name

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1500181 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Robert Muir 2013-07-06 00:44:19 +00:00
parent f134d0856b
commit f549dc94ff
1 changed files with 4 additions and 4 deletions

View File

@ -415,7 +415,7 @@ final class FreqProxTermsWriterPerField extends TermsHashConsumerPerField implem
// which all share the same term. Now we must // which all share the same term. Now we must
// interleave the docID streams. // interleave the docID streams.
int docFreq = 0; int docFreq = 0;
long totTF = 0; long totalTermFreq = 0;
int docID = 0; int docID = 0;
while(true) { while(true) {
@ -483,7 +483,7 @@ final class FreqProxTermsWriterPerField extends TermsHashConsumerPerField implem
} }
} }
totTF += termFreq; totalTermFreq += termFreq;
// Carefully copy over the prox + payload info, // Carefully copy over the prox + payload info,
// changing the format to match Lucene's segment // changing the format to match Lucene's segment
@ -540,8 +540,8 @@ final class FreqProxTermsWriterPerField extends TermsHashConsumerPerField implem
} }
postingsConsumer.finishDoc(); postingsConsumer.finishDoc();
} }
termsConsumer.finishTerm(text, new TermStats(docFreq, writeTermFreq ? totTF : -1)); termsConsumer.finishTerm(text, new TermStats(docFreq, writeTermFreq ? totalTermFreq : -1));
sumTotalTermFreq += totTF; sumTotalTermFreq += totalTermFreq;
sumDocFreq += docFreq; sumDocFreq += docFreq;
} }