Package dev.getelements.elements.sdk.dao
Interface LargeObjectBucket
- All Known Implementing Classes:
GridFSLargeObjectBucket
public interface LargeObjectBucket
Represents a bucket for storing the contents of
LargeObject
s.-
Method Summary
Modifier and TypeMethodDescriptionvoid
deleteLargeObject
(String objectId) Deletes theLargeObject
with the supplied id as well as the associated metadata.readObject
(String objectId) Reads theLargeObject
's contentsvoid
setUploaded
(LargeObject largeObject) Forces buckets to mark referenced LO to set state UPLOADEDwriteObject
(String objectId) Writes theLargeObject
's contents
-
Method Details
-
writeObject
Writes theLargeObject
's contents- Parameters:
objectId
- the object id- Returns:
- the
InputStream
which can be used to read theLargeObject
contents - Throws:
IOException
- if an error occurs opening the contents
-
readObject
Reads theLargeObject
's contents- Parameters:
objectId
- the object id- Returns:
- the
InputStream
which can be used to read theLargeObject
contents - Throws:
IOException
- if an error occurs opening the contentsLargeObjectContentNotFoundException
- if the content does not exist for the object.
-
deleteLargeObject
Deletes theLargeObject
with the supplied id as well as the associated metadata.- Parameters:
objectId
- the object id- Throws:
IOException
-
setUploaded
Forces buckets to mark referenced LO to set state UPLOADED- Parameters:
largeObject
- the large object
-