public class BasicStats extends Object
Modifier and Type | Field and Description |
---|---|
protected double |
avgFieldLength
The average field length.
|
protected double |
boost
A query boost.
|
protected long |
docFreq
The document frequency.
|
protected long |
numberOfDocuments
The number of documents.
|
protected long |
numberOfFieldTokens
The total number of tokens in the field.
|
protected long |
totalTermFreq
The total number of occurrences of this term across all documents.
|
Constructor and Description |
---|
BasicStats(String field,
double boost)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
double |
getAvgFieldLength()
Returns the average field length.
|
double |
getBoost()
Returns the total boost.
|
long |
getDocFreq()
Returns the document frequency.
|
long |
getNumberOfDocuments()
Returns the number of documents.
|
long |
getNumberOfFieldTokens()
Returns the total number of tokens in the field.
|
long |
getTotalTermFreq()
Returns the total number of occurrences of this term across all documents.
|
void |
setAvgFieldLength(double avgFieldLength)
Sets the average field length.
|
void |
setDocFreq(long docFreq)
Sets the document frequency.
|
void |
setNumberOfDocuments(long numberOfDocuments)
Sets the number of documents.
|
void |
setNumberOfFieldTokens(long numberOfFieldTokens)
Sets the total number of tokens in the field.
|
void |
setTotalTermFreq(long totalTermFreq)
Sets the total number of occurrences of this term across all documents.
|
protected long numberOfDocuments
protected long numberOfFieldTokens
protected double avgFieldLength
protected long docFreq
protected long totalTermFreq
protected final double boost
public BasicStats(String field, double boost)
public long getNumberOfDocuments()
public void setNumberOfDocuments(long numberOfDocuments)
public long getNumberOfFieldTokens()
Terms.getSumTotalTermFreq()
public void setNumberOfFieldTokens(long numberOfFieldTokens)
Terms.getSumTotalTermFreq()
public double getAvgFieldLength()
public void setAvgFieldLength(double avgFieldLength)
public long getDocFreq()
public void setDocFreq(long docFreq)
public long getTotalTermFreq()
public void setTotalTermFreq(long totalTermFreq)
public double getBoost()
Copyright © 2000-2019 Apache Software Foundation. All Rights Reserved.