|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--lempinen.neatseeker.core.Entry
Encapsulates the information for a particular index entry. The Entries are not really stored anywhere. They are only used for passing messages from a RepositoryMaker to the Repository, from the Repository to a Bucket and from the Bucket to a PointerList. An entry contains the necessary information that we need for creating a new index entry: the keyword, the ID of the Target in the TargetIndex and the sequential number of the keyword in the document represented by the Target.
Field Summary | |
private long |
id
The ID of the Target in the TargetIndex. |
private java.lang.String |
key
The keyword. |
private int |
sequence
The sequential number of the keyword in the Target. |
Constructor Summary | |
Entry()
Creates an empty Entry. |
|
Entry(java.lang.String k,
long i,
int s)
Creates a Entry and initialises the internals. |
Method Summary | |
long |
getID()
Returns the ID of the Target in the TargetIndex. |
java.lang.String |
getKey()
Returns the keyword. |
int |
getSequence()
Returns the sequential number of the keyword in the Target. |
void |
setID(long i)
Sets the ID of the Target in the TargetIndex. |
void |
setKey(java.lang.String k)
Sets the keyword. |
void |
setSequence(int s)
Sets the sequential number of the keyword in the Target. |
java.lang.String |
toString()
Returns a String representation of the Entry. |
Methods inherited from class java.lang.Object |
|
Field Detail |
private java.lang.String key
private long id
private int sequence
Constructor Detail |
public Entry()
public Entry(java.lang.String k, long i, int s)
Method Detail |
public void setKey(java.lang.String k)
public java.lang.String getKey()
public void setID(long i)
public long getID()
public void setSequence(int s)
public int getSequence()
public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |