public class IListShadow extends Object implements IListReader
next()
.
IListReader assumes that none will overwrite the return value of IListReader.next()
and IListReader.skipTo(long)
. Moreover, the shadow
ensures that the return value will be always the same object unless we reach
the end of the list.
Constructor and Description |
---|
IListShadow()
Constructor for the IListWasher object
|
Modifier and Type | Method and Description |
---|---|
void |
close()
Close the IListWasher's IListReader.
|
long |
getPostings()
Return the length of the inverted list.
|
String |
getTerm()
Return the term for which the inverted list was constructed.
|
boolean |
next()
Go to the next element in the inverted list.
|
Proximities |
openProx()
Return an access object to the proximity list.
|
void |
setSource(IListReader source)
Sets the source attribute of the IListWasher object
|
boolean |
skipTo(long uid)
Go to the specified document.
|
long |
uid()
Identification of the document.
|
int |
weight()
Calculated vector value.
|
public void setSource(IListReader source)
source
- The new source valuepublic long getPostings()
getPostings
in interface IListReader
public String getTerm()
getTerm
in interface IListReader
public void close()
close
in interface AutoCloseable
close
in interface IListReader
public boolean skipTo(long uid)
skipTo
in interface IListReader
uid
- the document to skip topublic boolean next()
next
in interface IListReader
public Proximities openProx()
IListItem
public long uid()
IListItem
Copyright © 2016 Egothor. All Rights Reserved.