mirror of https://github.com/apache/lucene.git
LUCENE-3555: these methods should be final, its just a value class
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1197977 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
4111688879
commit
8aaf811751
|
@ -40,33 +40,33 @@ public class CollectionStatistics {
|
||||||
}
|
}
|
||||||
|
|
||||||
/** returns the field name */
|
/** returns the field name */
|
||||||
public String field() {
|
public final String field() {
|
||||||
return field;
|
return field;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** returns the total number of documents, regardless of
|
/** returns the total number of documents, regardless of
|
||||||
* whether they all contain values for this field.
|
* whether they all contain values for this field.
|
||||||
* @see IndexReader#maxDoc() */
|
* @see IndexReader#maxDoc() */
|
||||||
public int maxDoc() {
|
public final int maxDoc() {
|
||||||
return maxDoc;
|
return maxDoc;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** returns the total number of documents that
|
/** returns the total number of documents that
|
||||||
* have at least one term for this field.
|
* have at least one term for this field.
|
||||||
* @see Terms#getDocCount() */
|
* @see Terms#getDocCount() */
|
||||||
public int docCount() {
|
public final int docCount() {
|
||||||
return docCount;
|
return docCount;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** returns the total number of tokens for this field
|
/** returns the total number of tokens for this field
|
||||||
* @see Terms#getSumTotalTermFreq() */
|
* @see Terms#getSumTotalTermFreq() */
|
||||||
public long sumTotalTermFreq() {
|
public final long sumTotalTermFreq() {
|
||||||
return sumTotalTermFreq;
|
return sumTotalTermFreq;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** returns the total number of postings for this field
|
/** returns the total number of postings for this field
|
||||||
* @see Terms#getSumDocFreq() */
|
* @see Terms#getSumDocFreq() */
|
||||||
public long sumDocFreq() {
|
public final long sumDocFreq() {
|
||||||
return sumDocFreq;
|
return sumDocFreq;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -35,19 +35,19 @@ public class TermStatistics {
|
||||||
}
|
}
|
||||||
|
|
||||||
/** returns the term text */
|
/** returns the term text */
|
||||||
public BytesRef term() {
|
public final BytesRef term() {
|
||||||
return term;
|
return term;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** returns the number of documents this term occurs in
|
/** returns the number of documents this term occurs in
|
||||||
* @see IndexReader#docFreq(String, BytesRef) */
|
* @see IndexReader#docFreq(String, BytesRef) */
|
||||||
public int docFreq() {
|
public final int docFreq() {
|
||||||
return docFreq;
|
return docFreq;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** returns the total number of occurrences of this term
|
/** returns the total number of occurrences of this term
|
||||||
* @see IndexReader#totalTermFreq(String, BytesRef) */
|
* @see IndexReader#totalTermFreq(String, BytesRef) */
|
||||||
public long totalTermFreq() {
|
public final long totalTermFreq() {
|
||||||
return totalTermFreq;
|
return totalTermFreq;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue