|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.egothor.merger.ConcatLists
public abstract class ConcatLists
A ConcatIListReader is some 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 | |
---|---|
ConcatLists()
Constructor for the ConcatListReader object |
Method Summary | |
---|---|
void |
close()
Does nothing by default. |
long |
getPostings()
Return the number of postings. |
java.lang.String |
getTerm()
Return the term for this ConcatListReader. |
boolean |
next()
Move to the next item in the inverted list. |
Proximities |
openProx()
Return an access object to the proximity list. |
void |
setTerm(java.lang.String term)
Sets the term attribute of the ConcatLists object |
boolean |
skipTo(long uid)
Skip to the given position in the inverted list. |
abstract void |
switchContext()
This method would close the current list reader, and set new values for current and current_offset attributes. |
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 ConcatLists()
Method Detail |
---|
public void setTerm(java.lang.String term)
term
- The new term valuepublic long getPostings()
getPostings
in interface IListReader
public java.lang.String getTerm()
getTerm
in interface IListReader
public abstract void switchContext()
current
and current_offset
attributes. If
there is not any next list, then current
must be set to
null .
public boolean next()
IListReader
next
in interface IListReader
public boolean skipTo(long uid)
skipTo
in interface IListReader
uid
- the position to skip to
public void close()
close
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 |