|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.labs.minion.Posting
public class Posting
A single posting from a document, composed of a term and the frequency of that term in the document.
Document.getPostings(java.lang.String),
Serialized Form| Field Summary | |
|---|---|
protected int |
freq
The frequency of the term. |
protected java.lang.String |
term
The term represented by this posting. |
| Constructor Summary | |
|---|---|
Posting()
|
|
Posting(java.lang.String term,
int freq)
Creates a posting for a given term and frequency. |
|
| Method Summary | |
|---|---|
int |
getFreq()
Gets the frequency of this term in this document. |
java.lang.String |
getTerm()
Gets the term associated with this posting. |
java.lang.String |
toString()
Generates a string representation of this posting |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected java.lang.String term
protected int freq
| Constructor Detail |
|---|
public Posting()
public Posting(java.lang.String term,
int freq)
term - the term represented by this posting. Spaces will be trimmed from the
beginning and end of this termfreq - the frequency of the term in the index.| Method Detail |
|---|
public java.lang.String getTerm()
public int getFreq()
public java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||