|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.terrier.structures.LexiconEntry org.terrier.structures.BasicTermStatsLexiconEntry
public class BasicTermStatsLexiconEntry
A LexiconEntry which only contains EntryStatistics
Field Summary | |
---|---|
protected int |
n_t
|
protected int |
termId
|
protected int |
TF
|
Constructor Summary | |
---|---|
BasicTermStatsLexiconEntry()
Constructs an instance of the BasicTermStatsLexiconEntry. |
|
BasicTermStatsLexiconEntry(int _TF,
int _n_t,
int _termId)
Constructs an instance of the BasicTermStatsLexiconEntry. |
Method Summary | |
---|---|
void |
add(EntryStatistics le)
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 |
getNumberOfEntries()
Returns number of "things" that this pointer refers to |
long |
getOffset()
Get the offset (bytes) |
byte |
getOffsetBits()
Get the number of bits for the offset |
int |
getTermId()
The id of the term |
java.lang.String |
pointerToString()
Returns a textual representation of the pointer alone |
void |
readFields(java.io.DataInput in)
|
void |
setAll(int _TF,
int _n_t,
int _termId)
Sets the term frequency, document frequency and term id for this term |
void |
setBitIndexPointer(BitIndexPointer pointer)
Sets the bit index pointer to this LexiconEntry |
void |
setDocumentFrequency(int _n_t)
Sets the document frequency |
void |
setFrequency(int _TF)
Sets the frequency for this term |
void |
setNumberOfEntries(int n)
Set the number of "things that the pointer refers to |
void |
setOffset(BitFilePosition pos)
Sets the offset using a BitFilePosition |
void |
setOffset(long bytes,
byte bits)
Set the offset in terms of bits and bytes |
void |
setPointer(Pointer p)
Sets the pointer within this object to that represented by the specified pointer |
void |
setStatistics(int _n_t,
int _TF)
Set the document frequency and term frequency |
void |
setTermId(int _termId)
Set the term ID |
void |
subtract(EntryStatistics le)
Decrement the statistics of this object by that of another |
void |
write(java.io.DataOutput out)
|
Methods inherited from class org.terrier.structures.LexiconEntry |
---|
equals, hashCode, toString |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected int n_t
protected int TF
protected int termId
Constructor Detail |
---|
public BasicTermStatsLexiconEntry()
public BasicTermStatsLexiconEntry(int _TF, int _n_t, int _termId)
_TF
- _n_t
- _termId
- Method Detail |
---|
public int getDocumentFrequency()
public void setDocumentFrequency(int _n_t)
public int getFrequency()
public void setFrequency(int _TF)
public int getTermId()
public void setTermId(int _termId)
setTermId
in class LexiconEntry
public void setAll(int _TF, int _n_t, int _termId)
public int getNumberOfEntries()
public byte getOffsetBits()
public long getOffset()
public void setOffset(long bytes, byte bits)
public void setBitIndexPointer(BitIndexPointer pointer)
public void setOffset(BitFilePosition pos)
public void readFields(java.io.DataInput in) throws java.io.IOException
java.io.IOException
public void write(java.io.DataOutput out) throws java.io.IOException
java.io.IOException
public void add(EntryStatistics le)
public void subtract(EntryStatistics le)
public void setNumberOfEntries(int n)
public java.lang.String pointerToString()
public void setPointer(Pointer p)
p
- other pointer to update the pointer in this objectpublic void setStatistics(int _n_t, int _TF)
LexiconEntry
setStatistics
in class LexiconEntry
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |