|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.egothor.store.IListMetadata
org.egothor.store.IListMetadataRead
public class IListMetadataRead
| Field Summary |
|---|
| Fields inherited from class org.egothor.store.IListMetadata |
|---|
term |
| Constructor Summary | |
|---|---|
|
IListMetadataRead(DataInput in)
|
protected |
IListMetadataRead(IListMetadataRead orig)
This constructor only compensates for clone() implementation. |
| Method Summary | |
|---|---|
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). |
java.lang.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. |
| Methods inherited from class org.egothor.store.IListMetadata |
|---|
getLength, isBitmap, isSeparated |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public IListMetadataRead(DataInput in)
throws java.io.IOException
java.io.IOExceptionprotected IListMetadataRead(IListMetadataRead orig)
| Method Detail |
|---|
public IListReader getNew(DataInputStream ils_dta,
ProximitiesFileIn prox,
boolean closeable)
throws java.io.IOException
java.io.IOExceptionpublic java.lang.String getTerm()
IListReader
getTerm in interface IListReaderpublic boolean next()
IListReader
next in interface IListReaderpublic boolean skipTo(long uid)
IListReaderuid identification.
skipTo in interface IListReaderuid - the item to skip to
public void close()
IListReader
close in interface IListReaderpublic long getPostings()
IListReader
getPostings in interface IListReaderpublic Proximities openProx()
IListItem
openProx in interface IListItempublic long uid()
IListItem
uid in interface IListItempublic int weight()
IListItem
weight in interface IListItem
public int readProx()
throws java.io.IOException
Proximities
readProx in interface Proximitiesjava.io.IOExceptionpublic int leftProx()
Proximities
leftProx in interface Proximitiespublic void closeProx()
Proximities
closeProx in interface Proximities
public int readProx(int[] prox,
int offset,
int len)
throws java.io.IOException
Proximities
readProx in interface Proximitiesprox - the bufferoffset - first cell to filllen - how many cell are read
java.io.IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||