|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.egothor.repository.BlobRepository
public class BlobRepository
BLOB repository stores huge data objects which cannot be effectively stored within other repository types. This special repository assumes:
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface org.egothor.repository.DataRepository |
---|
DataRepository.TupleSequence |
Constructor Summary | |
---|---|
BlobRepository(java.lang.String root,
boolean useGzip)
|
Method Summary | |
---|---|
int |
acceptInto(long key,
File blob)
|
int |
addItem(long key,
byte[] document,
int length)
Adds another document into the repository. |
int |
addItem(long key,
DataInput in)
|
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 BlobRepository(java.lang.String root, boolean useGzip)
Method Detail |
---|
public int acceptInto(long key, File blob)
public int addItem(long key, DataInput in)
public int addItem(long key, byte[] document, int length)
DataRepository
addItem
in interface DataRepository
public DataInputStream elementAt(long key, int revision)
DataRepository
elementAt
in interface DataRepository
key
- the key of the blockrevision
- revision number of the block, 0 is used for the latest (current) revision
public DataRepository.TupleSequence elements()
DataRepository
elements
in interface DataRepository
public void flush()
flush
in interface DataRepository
public void close()
DataRepository
close
in interface DataRepository
public void destroy()
DataRepository
destroy
in interface DataRepository
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |