Class MongoBlob
- java.lang.Object
-
- org.apache.jackrabbit.oak.plugins.document.mongo.MongoBlob
-
- All Implemented Interfaces:
org.bson.conversions.Bson
public class MongoBlob extends java.lang.Object implements org.bson.conversions.Bson
TheMongoDB
representation of a blob. Only used by MongoBlobStore
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
KEY_DATA
static java.lang.String
KEY_ID
static java.lang.String
KEY_LAST_MOD
static java.lang.String
KEY_LEVEL
-
Constructor Summary
Constructors Constructor Description MongoBlob()
Default constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]
getData()
java.lang.String
getId()
long
getLastMod()
int
getLevel()
void
setData(byte[] data)
void
setId(java.lang.String id)
void
setLastMod(long lastMod)
void
setLevel(int level)
<TDocument>
org.bson.BsonDocumenttoBsonDocument(java.lang.Class<TDocument> tDocumentClass, org.bson.codecs.configuration.CodecRegistry codecRegistry)
-
-
-
Field Detail
-
KEY_ID
public static final java.lang.String KEY_ID
- See Also:
- Constant Field Values
-
KEY_DATA
public static final java.lang.String KEY_DATA
- See Also:
- Constant Field Values
-
KEY_LAST_MOD
public static final java.lang.String KEY_LAST_MOD
- See Also:
- Constant Field Values
-
KEY_LEVEL
public static final java.lang.String KEY_LEVEL
- See Also:
- Constant Field Values
-
-
Method Detail
-
getId
public java.lang.String getId()
-
setId
public void setId(java.lang.String id)
-
getData
public byte[] getData()
-
setData
public void setData(byte[] data)
-
getLevel
public int getLevel()
-
setLevel
public void setLevel(int level)
-
getLastMod
public long getLastMod()
-
setLastMod
public void setLastMod(long lastMod)
-
toBsonDocument
public <TDocument> org.bson.BsonDocument toBsonDocument(java.lang.Class<TDocument> tDocumentClass, org.bson.codecs.configuration.CodecRegistry codecRegistry)
- Specified by:
toBsonDocument
in interfaceorg.bson.conversions.Bson
-
-