|
Terrier IR Platform 2.2.1 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectuk.ac.gla.terrier.structures.LexiconEntry
public class LexiconEntry
Contains all the information about one entry in the Lexicon. Created to make thread-safe lookups in the Lexicon easier.
| Field Summary | |
|---|---|
byte |
endBitOffset
the end bit offset of the entry in the inverted index |
long |
endOffset
the end offset of the entry in the inverted index |
int |
n_t
the number of document that this entry occurs in |
byte |
startBitOffset
the start bit offset of the entry in the inverted index |
long |
startOffset
the start offset of the entry in the inverted index |
java.lang.String |
term
the term of this entry |
int |
termId
the termid of this entry |
int |
TF
the total number of occurrences of the term in the index |
| Constructor Summary | |
|---|---|
LexiconEntry()
Create an empty LexiconEntry |
|
LexiconEntry(java.lang.String t,
int tid,
int n_t,
int TF)
Create a lexicon entry with the following information. |
|
| Method Summary | |
|---|---|
void |
add(LexiconEntry le)
increment this lexicon entry by another |
void |
subtract(LexiconEntry le)
alter this lexicon entry to subtract another lexicon entry |
java.lang.String |
toString()
returns a string representation of this lexicon entry |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public java.lang.String term
public int termId
public int n_t
public int TF
public long startOffset
public byte startBitOffset
public long endOffset
public byte endBitOffset
| Constructor Detail |
|---|
public LexiconEntry()
public LexiconEntry(java.lang.String t,
int tid,
int n_t,
int TF)
t - the termtid - the term idn_t - the number of documents the term occurs in (document frequency)TF - the total count of therm t in the collection| Method Detail |
|---|
public void add(LexiconEntry le)
public void subtract(LexiconEntry le)
public java.lang.String toString()
toString in class java.lang.Object
|
Terrier IR Platform 2.2.1 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||