|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.terrier.structures.LexiconEntry
public abstract class LexiconEntry
Represents the statistics of a term in the Lexicon, and
a pointer to the term's location in the InvertedIndex. For
these reasons, this class implements Pointer and EntryStatistics.
Lexicon,
Pointer,
EntryStatistics,
Serialized Form| Constructor Summary | |
|---|---|
LexiconEntry()
|
|
| Method Summary | |
|---|---|
boolean |
equals(Object obj)
|
int |
getNumberOfEntries()
Returns number of "things" that this pointer refers to |
EntryStatistics |
getWritableEntryStatistics()
Get a copy of these entry statistics that can be reused. |
int |
hashCode()
|
String |
pointerToString()
Returns a textual representation of the pointer alone |
void |
setNumberOfEntries(int n)
Set the number of "things that the pointer refers to |
void |
setPointer(Pointer p)
Sets the pointer within this object to that represented by the specified pointer |
abstract void |
setStatistics(int n_t,
int TF)
Set the document frequency and term frequency |
abstract void |
setTermId(int newTermId)
Set the term ID |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.terrier.structures.EntryStatistics |
|---|
add, getDocumentFrequency, getFrequency, getTermId, subtract |
| Methods inherited from interface org.apache.hadoop.io.Writable |
|---|
readFields, write |
| Constructor Detail |
|---|
public LexiconEntry()
| Method Detail |
|---|
public String toString()
toString in class Objectpublic abstract void setTermId(int newTermId)
public abstract void setStatistics(int n_t,
int TF)
public int getNumberOfEntries()
Pointer
getNumberOfEntries in interface Pointerpublic void setNumberOfEntries(int n)
Pointer
setNumberOfEntries in interface Pointerpublic String pointerToString()
Pointer
pointerToString in interface Pointerpublic void setPointer(Pointer p)
Pointer
setPointer in interface Pointerp - other pointer to update the pointer in this objectpublic EntryStatistics getWritableEntryStatistics()
EntryStatistics
getWritableEntryStatistics in interface EntryStatisticspublic boolean equals(Object obj)
equals in class Objectpublic int hashCode()
hashCode in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||