public abstract class ConcatLists extends Object implements IListReader
| Constructor and Description |
|---|
ConcatLists()
Constructor for the ConcatListReader object
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Does nothing by default.
|
long |
getPostings()
Return the number of postings.
|
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(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.
|
public void setTerm(String term)
term - The new term valuepublic long getPostings()
getPostings in interface IListReaderpublic String getTerm()
getTerm in interface IListReaderpublic 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()
IListReadernext in interface IListReaderpublic boolean skipTo(long uid)
skipTo in interface IListReaderuid - the position to skip topublic void close()
close in interface AutoCloseableclose in interface IListReaderpublic Proximities openProx()
IListItempublic long uid()
IListItemCopyright © 2016 Egothor. All Rights Reserved.