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 2011/11/05 17:06:20 UTC

svn commit: r1197977 - in /lucene/dev/trunk/lucene/src/java/org/apache/lucene/search: CollectionStatistics.java TermStatistics.java

Author: rmuir
Date: Sat Nov  5 16:06:20 2011
New Revision: 1197977

URL: http://svn.apache.org/viewvc?rev=1197977&view=rev
Log:
LUCENE-3555: these methods should be final, its just a value class

Modified:
    lucene/dev/trunk/lucene/src/java/org/apache/lucene/search/CollectionStatistics.java
    lucene/dev/trunk/lucene/src/java/org/apache/lucene/search/TermStatistics.java

Modified: lucene/dev/trunk/lucene/src/java/org/apache/lucene/search/CollectionStatistics.java
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/lucene/src/java/org/apache/lucene/search/CollectionStatistics.java?rev=1197977&r1=1197976&r2=1197977&view=diff
==============================================================================
--- lucene/dev/trunk/lucene/src/java/org/apache/lucene/search/CollectionStatistics.java (original)
+++ lucene/dev/trunk/lucene/src/java/org/apache/lucene/search/CollectionStatistics.java Sat Nov  5 16:06:20 2011
@@ -40,33 +40,33 @@ public class CollectionStatistics {
   }
   
   /** returns the field name */
-  public String field() {
+  public final String field() {
     return field;
   }
   
   /** returns the total number of documents, regardless of 
    * whether they all contain values for this field. 
    * @see IndexReader#maxDoc() */
-  public int maxDoc() {
+  public final int maxDoc() {
     return maxDoc;
   }
   
   /** returns the total number of documents that
    * have at least one term for this field. 
    * @see Terms#getDocCount() */
-  public int docCount() {
+  public final int docCount() {
     return docCount;
   }
   
   /** returns the total number of tokens for this field
    * @see Terms#getSumTotalTermFreq() */
-  public long sumTotalTermFreq() {
+  public final long sumTotalTermFreq() {
     return sumTotalTermFreq;
   }
   
   /** returns the total number of postings for this field 
    * @see Terms#getSumDocFreq() */
-  public long sumDocFreq() {
+  public final long sumDocFreq() {
     return sumDocFreq;
   }
 }

Modified: lucene/dev/trunk/lucene/src/java/org/apache/lucene/search/TermStatistics.java
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/lucene/src/java/org/apache/lucene/search/TermStatistics.java?rev=1197977&r1=1197976&r2=1197977&view=diff
==============================================================================
--- lucene/dev/trunk/lucene/src/java/org/apache/lucene/search/TermStatistics.java (original)
+++ lucene/dev/trunk/lucene/src/java/org/apache/lucene/search/TermStatistics.java Sat Nov  5 16:06:20 2011
@@ -35,19 +35,19 @@ public class TermStatistics {
   }
   
   /** returns the term text */
-  public BytesRef term() {
+  public final BytesRef term() {
     return term;
   }
   
   /** returns the number of documents this term occurs in 
    * @see IndexReader#docFreq(String, BytesRef) */
-  public int docFreq() {
+  public final int docFreq() {
     return docFreq;
   }
   
   /** returns the total number of occurrences of this term
    * @see IndexReader#totalTermFreq(String, BytesRef) */
-  public long totalTermFreq() {
+  public final long totalTermFreq() {
     return totalTermFreq;
   }
 }