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 IListReader
public 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 topublic void close()
close
in interface AutoCloseable
close
in interface IListReader
public Proximities openProx()
IListItem
public long uid()
IListItem
Copyright © 2016 Egothor. All Rights Reserved.