|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.egothor.cache.CachedIListReader
public class CachedIListReader
Represents a IListReader
implementation that uses a cache to retrieve posting lists.
Constructor Summary | |
---|---|
CachedIListReader(CachedRider cachedBarrel,
Barrel barrel,
java.lang.String term,
int pageSize)
Constructor for the CachedIListReader object. |
Method Summary | |
---|---|
void |
close()
Closes this reader. |
long |
getPostings()
Returns the number of items in the inverted list this object reads (including removed ones). |
java.lang.String |
getTerm()
Returns the term that owns this inverted list. |
boolean |
next()
Move to the next item in the inverted list. |
Proximities |
openProx()
Returns an access object to the proximity list. |
boolean |
skipTo(long uid)
Skips (forward) in the inverted list to the first item with an ID greater than or equal to the given uid identification. |
long |
uid()
Returns the UID of the current document; |
int |
weight()
Returns the weight of the document. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CachedIListReader(CachedRider cachedBarrel, Barrel barrel, java.lang.String term, int pageSize)
cachedBarrel
- cache used to retrieve inverted list pagesbarrel
- original barrel that stores the non-cached inverted listterm
- term that owns this inverted listpageSize
- size of single cached inverted list partitionMethod Detail |
---|
public boolean next()
next
in interface IListReader
public boolean skipTo(long uid)
uid
identification.
skipTo
in interface IListReader
uid
- the item to skip to
public long uid()
uid
in interface IListItem
public int weight()
weight
in interface IListItem
public Proximities openProx()
openProx
in interface IListItem
public long getPostings()
getPostings
in interface IListReader
public java.lang.String getTerm()
getTerm
in interface IListReader
public void close()
close
in interface IListReader
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |