|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.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 IListReader
public java.lang.String getTerm()
getTerm
in interface IListReader
public void close()
close
in interface IListReader
public boolean skipTo(long uid)
skipTo
in interface IListReader
uid
- the document to skip to
public boolean next()
next
in interface IListReader
public Proximities openProx()
IListItem
openProx
in interface IListItem
public long uid()
IListItem
uid
in interface IListItem
public int weight()
IListItem
weight
in interface IListItem
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |