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 FormConstructor 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, wait
add, getDocumentFrequency, getFrequency, getTermId, subtract
public abstract void setTermId(int newTermId)
public abstract void setStatistics(int n_t, int TF)
public int getNumberOfEntries()
Pointer
getNumberOfEntries
in interface Pointer
public void setNumberOfEntries(int n)
Pointer
setNumberOfEntries
in interface Pointer
public String pointerToString()
Pointer
pointerToString
in interface Pointer
public void setPointer(Pointer p)
Pointer
setPointer
in interface Pointer
p
- other pointer to update the pointer in this objectpublic EntryStatistics getWritableEntryStatistics()
EntryStatistics
getWritableEntryStatistics
in interface EntryStatistics
Terrier Information Retrieval Platform4.1. Copyright © 2004-2015, University of Glasgow