public class Berkeley extends Object implements DataRepository
DataRepository.TupleSequence| Modifier and Type | Method and Description |
|---|---|
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() |
public Berkeley(String filename) throws com.sleepycat.je.DatabaseException, FileNotFoundException
filename - com.sleepycat.je.DatabaseExceptionFileNotFoundExceptionpublic void close()
DataRepositoryclose in interface DataRepositorypublic void destroy()
DataRepositorydestroy in interface DataRepositorypublic int addItem(long key,
byte[] d0,
int l0)
DataRepositoryaddItem in interface DataRepositorypublic DataInputStream elementAt(long key, int revision)
DataRepositoryelementAt in interface DataRepositorykey - the key of the blockrevision - revision number of the block, 0 is used for the latest (current) revisionpublic DataRepository.TupleSequence elements()
elements in interface DataRepositorypublic void flush()
flush in interface DataRepositoryCopyright © 2016 Egothor. All Rights Reserved.