|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.egothor.core.IListShadow
public class IListShadow
A IListShadow envelopes underlaying inverted list. You can also use
last field to access the last object returned via next().
IListReader assumes that none will overwrite the return value of IListReader.next() and IListReader.skipTo(long). Moreover, the shadow
ensures that the return value will be always the same object unless we reach
the end of the list.
| Constructor Summary | |
|---|---|
IListShadow()
Constructor for the IListWasher object |
|
| Method Summary | |
|---|---|
void |
close()
Close the IListWasher's IListReader. |
long |
getPostings()
Return the length of the inverted list. |
java.lang.String |
getTerm()
Return the term for which the inverted list was constructed. |
boolean |
next()
Go to the next element in the inverted list. |
Proximities |
openProx()
Return an access object to the proximity list. |
void |
setSource(IListReader source)
Sets the source attribute of the IListWasher object |
boolean |
skipTo(long uid)
Go to the specified document. |
long |
uid()
Identification of the document. |
int |
weight()
Calculated vector value. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public IListShadow()
| Method Detail |
|---|
public void setSource(IListReader source)
source - The new source valuepublic long getPostings()
getPostings in interface IListReaderpublic java.lang.String getTerm()
getTerm in interface IListReaderpublic void close()
close in interface IListReaderpublic boolean skipTo(long uid)
skipTo in interface IListReaderuid - the document to skip to
public boolean next()
next in interface IListReaderpublic Proximities openProx()
IListItem
openProx in interface IListItempublic long uid()
IListItem
uid in interface IListItempublic int weight()
IListItem
weight in interface IListItem
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||