|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.labs.minion.indexer.postings.OccurrenceImpl
public class OccurrenceImpl
A class that handles simple, ID only occurrences.
| Field Summary | |
|---|---|
protected int |
count
The frequency of this occurrence. |
protected int |
id
The ID of this occurrence. |
| Constructor Summary | |
|---|---|
OccurrenceImpl()
|
|
OccurrenceImpl(int id)
|
|
| Method Summary | |
|---|---|
int |
getCount()
Gets the count of occurrences that this occurrence represents. |
int |
getID()
Gets the ID of the term in this occurrence. |
void |
setCount(int count)
Sets the count of occurrences that this occurrence represents. |
void |
setID(int id)
Sets the ID for the term in this occurrence. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected int id
protected int count
| Constructor Detail |
|---|
public OccurrenceImpl()
public OccurrenceImpl(int id)
| Method Detail |
|---|
public int getID()
Occurrence
getID in interface Occurrencepublic void setID(int id)
setID in interface Occurrenceid - the ID.public int getCount()
getCount in interface Occurrencepublic void setCount(int count)
setCount in interface Occurrencecount - the number of occurrences.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||