public class SimpleNgramEntryStatistics extends Object implements NgramEntryStatistics, org.apache.hadoop.io.Writable
| Constructor and Description |
|---|
SimpleNgramEntryStatistics() |
SimpleNgramEntryStatistics(EntryStatistics e) |
SimpleNgramEntryStatistics(int ws) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(EntryStatistics e)
Increment the statistics of this object by that of another
|
int |
getDocumentFrequency()
The number of documents that the entry (term) occurred in
|
int |
getFrequency()
The frequency (total number of occurrences) of the entry (term).
|
int |
getMaxFrequencyInDocuments() |
int |
getTermId()
The id of the term
|
int |
getWindowSize() |
EntryStatistics |
getWritableEntryStatistics()
Get a copy of these entry statistics that can be reused.
|
void |
readFields(DataInput in) |
void |
setDocumentFrequency(int nt) |
void |
setFrequency(int F) |
void |
setMaxFrequencyInDocuments(int max) |
void |
setWindowSize(int ws) |
void |
subtract(EntryStatistics e)
Decrement the statistics of this object by that of another
|
String |
toString() |
void |
write(DataOutput out) |
public SimpleNgramEntryStatistics(EntryStatistics e)
public SimpleNgramEntryStatistics()
public SimpleNgramEntryStatistics(int ws)
public int getFrequency()
EntryStatisticsgetFrequency in interface EntryStatisticspublic int getDocumentFrequency()
EntryStatisticsgetDocumentFrequency in interface EntryStatisticspublic int getTermId()
EntryStatisticsgetTermId in interface EntryStatisticspublic void add(EntryStatistics e)
EntryStatisticsadd in interface EntryStatisticspublic void subtract(EntryStatistics e)
EntryStatisticssubtract in interface EntryStatisticspublic EntryStatistics getWritableEntryStatistics()
EntryStatisticsgetWritableEntryStatistics in interface EntryStatisticspublic int getWindowSize()
getWindowSize in interface NgramEntryStatisticspublic void setWindowSize(int ws)
setWindowSize in interface NgramEntryStatisticspublic void readFields(DataInput in) throws IOException
readFields in interface org.apache.hadoop.io.WritableIOExceptionpublic void write(DataOutput out) throws IOException
write in interface org.apache.hadoop.io.WritableIOExceptionpublic int getMaxFrequencyInDocuments()
getMaxFrequencyInDocuments in interface EntryStatisticspublic void setMaxFrequencyInDocuments(int max)
setMaxFrequencyInDocuments in interface EntryStatisticspublic void setFrequency(int F)
setFrequency in interface EntryStatisticspublic void setDocumentFrequency(int nt)
setDocumentFrequency in interface EntryStatisticsTerrier Information Retrieval Platform 5.1. Copyright © 2004-2019, University of Glasgow