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, toString
public 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 EntryStatistics
public void setTermId(int termid)
setTermId
in class LexiconEntry
public int getDocumentFrequency()
getDocumentFrequency
in interface EntryStatistics
public int getFrequency()
getFrequency
in interface EntryStatistics
public void setStatistics(int df, int tf)
setStatistics
in class LexiconEntry
public void add(EntryStatistics es)
add
in interface EntryStatistics
public void subtract(EntryStatistics es)
subtract
in interface EntryStatistics
public int getNumberOfEntries()
getNumberOfEntries
in interface Pointer
getNumberOfEntries
in class LexiconEntry
public void setNumberOfEntries(int df)
setNumberOfEntries
in interface Pointer
setNumberOfEntries
in class LexiconEntry
public int getPointer()
getPointer
in interface MemoryPointer
public void setPointer(Pointer p)
setPointer
in interface Pointer
setPointer
in class LexiconEntry
p
- other pointer to update the pointer in this objectpublic String pointerToString()
pointerToString
in interface Pointer
pointerToString
in class LexiconEntry
public void readFields(DataInput arg0) throws IOException
readFields
in interface org.apache.hadoop.io.Writable
IOException
public void write(DataOutput out) throws IOException
write
in interface org.apache.hadoop.io.Writable
IOException
public MemoryLexiconEntry clone()
Terrier Information Retrieval Platform4.1. Copyright © 2004-2015, University of Glasgow