|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.egothor.slotter.BarrelShadow
public final class BarrelShadow
BarrelShadow.java
Constructor Summary | |
---|---|
BarrelShadow(Barrel orig,
boolean closeable,
boolean commitable,
boolean destroyable,
boolean setbitmap)
|
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). |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BarrelShadow(Barrel orig, boolean closeable, boolean commitable, boolean destroyable, boolean setbitmap)
Method Detail |
---|
public Sequence<? extends IListMetadata> expand(java.lang.String expr)
expand
in interface Barrel
expr
- the expression to match
public Bitmap getBitmap(java.lang.String label)
getBitmap
in interface Barrel
label
- the label of the requested Bitmap
public IListMetadata getIListMeta(java.lang.String term)
term
.
getIListMeta
in interface Barrel
term
- the term
public IListReader openIList(java.lang.String term, boolean clean)
term
for reading.
openIList
in interface Barrel
term
- the termclean
- whether to remove all the items denoted as deleted
public DocumentData getMeta(long uid)
uid
.
getMeta
in interface Barrel
uid
- the document number
public boolean removeDoc(long id)
removeDoc
in interface Barrel
id
- the document to remove
public 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.
query
in interface Barrel
q
- the queryresult
- reads documents for similarity to the querypublic void commit()
commit
in interface Barrel
public long deleted()
deleted
in interface Barrel
public void destroy()
destroy
in interface Barrel
public BarrelReader open()
open
in interface Barrel
public long size()
size
in interface Barrel
public void close()
close
in interface Barrel
public void setBitmap(java.lang.String label, Bitmap bitmap)
Barrel
setBitmap
in interface Barrel
label
- the label of the requested Bitmapbitmap
- Bitmap of removed documents when label is null
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |