|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.egothor.repository.Berkeley
public class Berkeley
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.egothor.repository.DataRepository |
|---|
DataRepository.TupleSequence |
| Constructor Summary | |
|---|---|
Berkeley(java.lang.String filename)
|
|
| Method Summary | |
|---|---|
int |
addItem(long key,
byte[] d0,
int l0)
Adds another document into the repository. |
void |
close()
Closes the repository. |
void |
destroy()
Destroy the repository. |
DataInputStream |
elementAt(long key,
int revision)
Retrieves a data block. |
DataRepository.TupleSequence |
elements()
The tuples are [long:uid;int:rev;Object:DataInputStream]. |
void |
flush()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Berkeley(java.lang.String filename)
throws com.sleepycat.db.DatabaseException,
java.io.FileNotFoundException
com.sleepycat.db.DatabaseException
java.io.FileNotFoundException| Method Detail |
|---|
public void close()
DataRepository
close in interface DataRepositorypublic void destroy()
DataRepository
destroy in interface DataRepository
public int addItem(long key,
byte[] d0,
int l0)
DataRepository
addItem in interface DataRepository
public DataInputStream elementAt(long key,
int revision)
DataRepository
elementAt in interface DataRepositorykey - the key of the blockrevision - revision number of the block, 0 is used for the latest (current) revision
public DataRepository.TupleSequence elements()
elements in interface DataRepositorypublic void flush()
flush in interface DataRepository
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||