|
Esri Geoportal Server 1.0
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.esri.gpt.catalog.lucene.stats.SingleFieldStats
public class SingleFieldStats
Provides statistics associated with a single field.
Statistics are unavailable until collected. Statistics provided are:
Constructor Summary | |
---|---|
SingleFieldStats(String fieldName)
Construct with a supplied field name. |
|
SingleFieldStats(String fieldName,
int maxRecords,
int minFrequency,
int maxFrequency)
Constructs with a supplied field name and min/max thresholds. |
Method Summary | |
---|---|
void |
collectStats(StatsRequest request,
IndexReader reader)
Executes the collection of statistics. |
protected long |
determineNumberOfDocsConsidered(IndexReader reader,
OpenBitSet documentFilterBitSet)
Determines the number of documents considered during stats collection. |
long |
getNumberOfDocsConsidered()
Gets the number of documents considered during stats collection. |
protected boolean |
getSortByFrequency()
Gets the flag indicating whether or not results should be sorted by frequency. |
long |
getTimeMillis()
Gets the execution time. |
protected void |
setNumberOfDocsConsidered(long count)
Sets the number of documents considered during stats collection. |
protected void |
setTimeMillis(long millis)
Sets the execution time. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SingleFieldStats(String fieldName)
fieldName
- the field namepublic SingleFieldStats(String fieldName, int maxRecords, int minFrequency, int maxFrequency)
fieldName
- the field namemaxRecords
- the maximum number of records to returnminFrequency
- the minimum term frequency to considermaxFrequency
- the maximum term frequency to considerMethod Detail |
---|
public void collectStats(StatsRequest request, IndexReader reader) throws IOException
request
- the active statistics requestreader
- the index reader
IOException
- if an error occurs while communicating with the indexpublic long getNumberOfDocsConsidered()
protected void setNumberOfDocsConsidered(long count)
count
- the number of documents consideredprotected boolean getSortByFrequency()
public long getTimeMillis()
protected void setTimeMillis(long millis)
millis
- the execution time (in milliseconds)protected long determineNumberOfDocsConsidered(IndexReader reader, OpenBitSet documentFilterBitSet)
reader
- the index readerdocumentFilterBitSet
- the bitset represing the subset of documents being cosidered
|
Esri Geoportal Server 1.0
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |