|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectbpiwowar.db.BatchFileStorage<Integer,bpiwowar.db.BatchFileStorage.IntegerLocation,CompactDocument>
uk.ac.gla.dcs.renaissance.mg4j.documents.CompactDocumentStorage
public class CompactDocumentStorage
This represents a set of cached documents - caches a set of tags
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class bpiwowar.db.BatchFileStorage |
|---|
bpiwowar.db.BatchFileStorage.IntegerLocation, bpiwowar.db.BatchFileStorage.Location<K>, bpiwowar.db.BatchFileStorage.StringLocation |
| Field Summary |
|---|
| Fields inherited from class bpiwowar.db.BatchFileStorage |
|---|
locationStore |
| Constructor Summary | |
|---|---|
CompactDocumentStorage(com.sleepycat.je.Environment dbenv,
String dbname,
File home,
boolean compress,
boolean destroy)
Initialise a new storage |
|
| Method Summary | |
|---|---|
void |
close()
Close the underlying resources |
Iterable<it.unimi.dsi.parser.Element> |
elements()
|
protected CompactDocument |
readObject(InputStream inputStream)
|
protected void |
writeObject(OutputStream outputStream,
CompactDocument document)
|
| Methods inherited from class bpiwowar.db.BatchFileStorage |
|---|
cleanup, closeOpenedBatches, count, finalize, getCurrentBatchIndex, getHome, getLocation, getObjectSize, getStoredObject, getStoredObject, hasObject, isCompressed, iterator, keyIterator, keys, nextBatch, outputObject, storeObject, storeObject, storeObject, storeObject, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public CompactDocumentStorage(com.sleepycat.je.Environment dbenv,
String dbname,
File home,
boolean compress,
boolean destroy)
throws com.sleepycat.persist.evolve.IncompatibleClassException,
com.sleepycat.je.DatabaseException,
IOException
dbenv - The database environmentdbname - The database name for storing documentshome - The directory where to store the files (null if using the same
as the database environment)compress - If the objects should be compresseddestroy - If the database should be destroyed when opened
com.sleepycat.persist.evolve.IncompatibleClassException
com.sleepycat.je.DatabaseException
IOException| Method Detail |
|---|
protected void writeObject(OutputStream outputStream,
CompactDocument document)
throws IOException
writeObject in class bpiwowar.db.BatchFileStorage<Integer,bpiwowar.db.BatchFileStorage.IntegerLocation,CompactDocument>IOException
protected CompactDocument readObject(InputStream inputStream)
throws IOException
readObject in class bpiwowar.db.BatchFileStorage<Integer,bpiwowar.db.BatchFileStorage.IntegerLocation,CompactDocument>IOException
public void close()
throws Throwable
close in class bpiwowar.db.BatchFileStorage<Integer,bpiwowar.db.BatchFileStorage.IntegerLocation,CompactDocument>Throwablepublic Iterable<it.unimi.dsi.parser.Element> elements()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||