|
||||||||||
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.IOException
protected IListMetadataRead(IListMetadataRead orig)
Method Detail |
---|
public IListReader getNew(DataInputStream ils_dta, ProximitiesFileIn prox, boolean closeable) throws java.io.IOException
java.io.IOException
public java.lang.String getTerm()
IListReader
getTerm
in interface IListReader
public boolean next()
IListReader
next
in interface IListReader
public boolean skipTo(long uid)
IListReader
uid
identification.
skipTo
in interface IListReader
uid
- the item to skip to
public void close()
IListReader
close
in interface IListReader
public long getPostings()
IListReader
getPostings
in interface IListReader
public Proximities openProx()
IListItem
openProx
in interface IListItem
public long uid()
IListItem
uid
in interface IListItem
public int weight()
IListItem
weight
in interface IListItem
public int readProx() throws java.io.IOException
Proximities
readProx
in interface Proximities
java.io.IOException
public int leftProx()
Proximities
leftProx
in interface Proximities
public void closeProx()
Proximities
closeProx
in interface Proximities
public int readProx(int[] prox, int offset, int len) throws java.io.IOException
Proximities
readProx
in interface Proximities
prox
- 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 |