public final class BarrelShadow extends Object implements Barrel
Constructor and Description |
---|
BarrelShadow(Barrel orig,
boolean closeable,
boolean commitable,
boolean destroyable,
boolean setbitmap) |
Modifier and Type | Method and Description |
---|---|
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(String expr)
Return the enumeration of all IListMetadata objects which match the
expression.
|
Bitmap |
getBitmap(String label)
Return the Bitmap of a given label.
|
IListMetadata |
getIListMeta(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(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(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).
|
public BarrelShadow(Barrel orig, boolean closeable, boolean commitable, boolean destroyable, boolean setbitmap)
public Sequence<? extends IListMetadata> expand(String expr)
public IListMetadata getIListMeta(String term)
term
.getIListMeta
in interface Barrel
term
- the termpublic IListReader openIList(String term, boolean clean)
term
for reading.public DocumentData getMeta(long uid)
uid
.public boolean removeDoc(long id)
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.
public void commit()
public long deleted()
public void destroy()
public BarrelReader open()
public long size()
public void close()
close
in interface AutoCloseable
close
in interface Barrel
Copyright © 2016 Egothor. All Rights Reserved.