public class MongoGridFSBlobStore extends Object implements org.apache.jackrabbit.mk.blobs.BlobStore
BlobStore for the MongoDB using GridFS. It
does not support garbage collection at the moment.| Constructor and Description |
|---|
MongoGridFSBlobStore(com.mongodb.DB db)
Constructs a new
BlobStoreMongoGridFS |
| Modifier and Type | Method and Description |
|---|---|
long |
getBlobLength(String blobId) |
int |
readBlob(String blobId,
long blobOffset,
byte[] buffer,
int bufferOffset,
int length) |
String |
writeBlob(InputStream is) |
public MongoGridFSBlobStore(com.mongodb.DB db)
BlobStoreMongoGridFSdb - The DB.public long getBlobLength(String blobId) throws Exception
getBlobLength in interface org.apache.jackrabbit.mk.blobs.BlobStoreExceptionpublic int readBlob(String blobId, long blobOffset, byte[] buffer, int bufferOffset, int length) throws Exception
readBlob in interface org.apache.jackrabbit.mk.blobs.BlobStoreExceptionpublic String writeBlob(InputStream is) throws Exception
writeBlob in interface org.apache.jackrabbit.mk.blobs.BlobStoreExceptionCopyright © 2012-2013 The Apache Software Foundation. All Rights Reserved.