public class MemoryLexiconEntry extends LexiconEntry implements MemoryPointer, Serializable
| Constructor and Description |
|---|
MemoryLexiconEntry()
Constructor.
|
MemoryLexiconEntry(int termid)
Constructor (termid).
|
MemoryLexiconEntry(int df,
int tf)
Constructor (df, tf).
|
MemoryLexiconEntry(int termid,
int df,
int tf)
Constructor (termid, df, tf).
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(EntryStatistics es)
Increment the statistics of this object by that of another
|
MemoryLexiconEntry |
clone() |
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
|
int |
getPointer()
Get pointer value (termid).
|
int |
getTermId()
The id of the term
|
String |
pointerToString()
Returns a textual representation of the pointer alone
|
void |
readFields(DataInput arg0)
Not implemented.
|
void |
setNumberOfEntries(int df)
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
|
void |
setStatistics(int df,
int tf)
Set the document frequency and term frequency
|
void |
setTermId(int termid)
Set the term ID
|
void |
subtract(EntryStatistics es)
Decrement the statistics of this object by that of another
|
void |
write(DataOutput out)
Not implemented.
|
equals, getWritableEntryStatistics, hashCode, toStringpublic MemoryLexiconEntry()
public MemoryLexiconEntry(int termid)
public MemoryLexiconEntry(int df,
int tf)
public MemoryLexiconEntry(int termid,
int df,
int tf)
public int getTermId()
getTermId in interface EntryStatisticspublic void setTermId(int termid)
setTermId in class LexiconEntrypublic int getDocumentFrequency()
getDocumentFrequency in interface EntryStatisticspublic int getFrequency()
getFrequency in interface EntryStatisticspublic void setStatistics(int df,
int tf)
setStatistics in class LexiconEntrypublic void add(EntryStatistics es)
add in interface EntryStatisticspublic void subtract(EntryStatistics es)
subtract in interface EntryStatisticspublic int getNumberOfEntries()
getNumberOfEntries in interface PointergetNumberOfEntries in class LexiconEntrypublic void setNumberOfEntries(int df)
setNumberOfEntries in interface PointersetNumberOfEntries in class LexiconEntrypublic int getPointer()
getPointer in interface MemoryPointerpublic void setPointer(Pointer p)
setPointer in interface PointersetPointer in class LexiconEntryp - other pointer to update the pointer in this objectpublic String pointerToString()
pointerToString in interface PointerpointerToString in class LexiconEntrypublic void readFields(DataInput arg0) throws IOException
readFields in interface org.apache.hadoop.io.WritableIOExceptionpublic void write(DataOutput out) throws IOException
write in interface org.apache.hadoop.io.WritableIOExceptionpublic MemoryLexiconEntry clone()
Terrier Information Retrieval Platform4.1. Copyright © 2004-2015, University of Glasgow