public abstract class LexiconEntry extends Object implements EntryStatistics, Pointer, org.apache.hadoop.io.Writable
Lexicon, and
a pointer to the term's location in a PostingIndex. For
these reasons, this class implements Pointer and EntryStatistics.Lexicon,
Pointer,
EntryStatistics,
Serialized Form| Constructor and Description |
|---|
LexiconEntry() |
| Modifier and Type | Method and Description |
|---|---|
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() |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitadd, getDocumentFrequency, getFrequency, getTermId, subtractpublic abstract void setTermId(int newTermId)
public abstract void setStatistics(int n_t,
int TF)
public int getNumberOfEntries()
PointergetNumberOfEntries in interface Pointerpublic void setNumberOfEntries(int n)
PointersetNumberOfEntries in interface Pointerpublic String pointerToString()
PointerpointerToString in interface Pointerpublic void setPointer(Pointer p)
PointersetPointer in interface Pointerp - other pointer to update the pointer in this objectpublic EntryStatistics getWritableEntryStatistics()
EntryStatisticsgetWritableEntryStatistics in interface EntryStatisticsTerrier Information Retrieval Platform4.1. Copyright © 2004-2015, University of Glasgow