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, isSeparated
public IListMetadataRead(DataInput in) throws IOException
IOException
public IListReader getNew(DataInputStream ils_dta, ProximitiesFileIn prox, boolean closeable) throws IOException
IOException
public 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 topublic void close()
IListReader
close
in interface AutoCloseable
close
in interface IListReader
public long getPostings()
IListReader
getPostings
in interface IListReader
public Proximities openProx()
IListItem
public long uid()
IListItem
public int weight()
IListItem
public int readProx() throws IOException
Proximities
readProx
in interface Proximities
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 IOException
Proximities
readProx
in interface Proximities
prox
- the bufferoffset
- first cell to filllen
- how many cell are readIOException
Copyright © 2016 Egothor. All Rights Reserved.