|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.egothor.merger.ConcatLists
org.egothor.merger.ConcatListReader
public class ConcatListReader
A ConcatIListReader is a collection (array) of IListReaders. Essentially, this is an array of inverted lists. This class can be implemented as sub-class of ConcatEnums, but we have not got the IListReaders to Enumerations, so it must wait.
| Constructor Summary | |
|---|---|
ConcatListReader(int max_len,
java.lang.String term)
Constructor for the ConcatListReader object |
|
| Method Summary | |
|---|---|
void |
add(long off,
IListReader ilr)
Add the given inverted list at the given position in this ConcatListReader. |
void |
close()
Close the IListReaders and mark for garbage collection. |
IListItem |
cursor()
|
long |
getPostings()
Return the number of postings. |
void |
switchContext()
Description of the Method |
| Methods inherited from class org.egothor.merger.ConcatLists |
|---|
getTerm, next, openProx, setTerm, skipTo, uid, weight |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ConcatListReader(int max_len,
java.lang.String term)
max_len - the initial lengthterm - the term| Method Detail |
|---|
public long getPostings()
getPostings in interface IListReadergetPostings in class ConcatLists
public void add(long off,
IListReader ilr)
off - where to addilr - the inverted list to addpublic void switchContext()
switchContext in class ConcatListspublic IListItem cursor()
public void close()
close in interface IListReaderclose in class ConcatLists
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||