|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Barrel
A Barrel is an index that can be opened for reading (via BarrelReader), manage the removal of documents from itself, and can return
metadata of inverted lists and documents. A Barrel can also destroy itself.
| Method Summary | |
|---|---|
void |
close()
Close this Barrel. |
void |
commit()
Commit changes of this barrel to disk. |
long |
deleted()
Return the number of deleted documents in this Barrel. |
void |
destroy()
Destroy all data structures this Barrel uses. |
Sequence<? extends IListMetadata> |
expand(java.lang.String expr)
Return the enumeration of all IListMetadata objects which match the expression. |
Bitmap |
getBitmap(java.lang.String label)
Return the Bitmap of a given label. |
IListMetadata |
getIListMeta(java.lang.String term)
Return the inverted list metadata of the given term. |
DocumentData |
getMeta(long uid)
Return the metadata of document number uid. |
BarrelReader |
open()
Return a reader for this Barrel. |
IListReader |
openIList(java.lang.String term,
boolean clean)
Open the inverted list of term for reading. |
void |
query(Query q,
ResultList result)
Submit a query to this Barrel. |
boolean |
removeDoc(long id)
Remove the given document from this Barrel. |
void |
setBitmap(java.lang.String label,
Bitmap bitmap)
Try to set the Bitmap of a given label. |
long |
size()
Return the number of all documents in this Barrel (including the deleted ones). |
| Method Detail |
|---|
Bitmap getBitmap(java.lang.String label)
label - the label of the requested Bitmap
void setBitmap(java.lang.String label,
Bitmap bitmap)
label - the label of the requested Bitmapbitmap - Bitmap of removed documents when label is nullSequence<? extends IListMetadata> expand(java.lang.String expr)
expr - the expression to match
long size()
long deleted()
boolean removeDoc(long id)
id - the document to remove
IListReader openIList(java.lang.String term,
boolean clean)
term for reading.
term - the termclean - whether to remove all the items denoted as deleted
BarrelReader open()
void destroy()
DocumentData getMeta(long uid)
uid.
uid - the document number
IListMetadata getIListMeta(java.lang.String term)
term.
term - the term
void close()
void commit()
void query(Query q,
ResultList result)
Above 1.2.5 : the equation of similarity in the extended boolean model. If p=1 the model is similar to the vector space model. As p approaches infinity (or a very large value), the model is equal to the classic boolean model. This parameter is not passed as a parameter to this routine - it should be part of the query object.
q - the queryresult - reads documents for similarity to the query
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||