public class IListMetadataRead extends IListMetadata implements IListReader, Proximities
term| Constructor and Description |
|---|
IListMetadataRead(DataInput in) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close the reader.
|
void |
closeProx()
Close this list and release resources.
|
IListReader |
getNew(DataInputStream ils_dta,
ProximitiesFileIn prox,
boolean closeable) |
long |
getPostings()
Return the number of items in the inverted list this object reads
(including removed ones).
|
String |
getTerm()
Return the term that owns this inverted list.
|
int |
leftProx()
Return the number of items in the proximity list which were not read yet.
|
boolean |
next()
Move to the next item in the inverted list.
|
Proximities |
openProx()
Return an access object to the proximity list.
|
int |
readProx()
Read this object's inverted list.
|
int |
readProx(int[] prox,
int offset,
int len)
Read an inverted list of length greater than 1.
|
boolean |
skipTo(long uid)
Skips (forward) in the inverted list to the first item with an ID greater
than or equal to the given
uid identification. |
long |
uid()
Identification of the document.
|
int |
weight()
Calculated vector value.
|
getLength, isBitmap, isSeparatedpublic IListMetadataRead(DataInput in) throws IOException
IOExceptionpublic IListReader getNew(DataInputStream ils_dta, ProximitiesFileIn prox, boolean closeable) throws IOException
IOExceptionpublic String getTerm()
IListReadergetTerm in interface IListReaderpublic boolean next()
IListReadernext in interface IListReaderpublic boolean skipTo(long uid)
IListReaderuid identification.skipTo in interface IListReaderuid - the item to skip topublic void close()
IListReaderclose in interface AutoCloseableclose in interface IListReaderpublic long getPostings()
IListReadergetPostings in interface IListReaderpublic Proximities openProx()
IListItempublic long uid()
IListItempublic int weight()
IListItempublic int readProx()
throws IOException
ProximitiesreadProx in interface ProximitiesIOExceptionpublic int leftProx()
ProximitiesleftProx in interface Proximitiespublic void closeProx()
ProximitiescloseProx in interface Proximitiespublic int readProx(int[] prox,
int offset,
int len)
throws IOException
ProximitiesreadProx in interface Proximitiesprox - the bufferoffset - first cell to filllen - how many cell are readIOExceptionCopyright © 2016 Egothor. All Rights Reserved.