Package dev.getelements.elements.sdk.dao
Interface LargeObjectBucket
- All Known Implementing Classes:
GridFSLargeObjectBucket
public interface LargeObjectBucket
Represents a bucket for storing the contents of
LargeObjects.-
Method Summary
Modifier and TypeMethodDescriptionvoiddeleteLargeObject(String objectId) Deletes theLargeObjectwith the supplied id as well as the associated metadata.readObject(String objectId) Reads theLargeObject's contentsvoidsetUploaded(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
InputStreamwhich can be used to read theLargeObjectcontents - Throws:
IOException- if an error occurs opening the contents
-
readObject
Reads theLargeObject's contents- Parameters:
objectId- the object id- Returns:
- the
InputStreamwhich can be used to read theLargeObjectcontents - Throws:
IOException- if an error occurs opening the contentsLargeObjectContentNotFoundException- if the content does not exist for the object.
-
deleteLargeObject
Deletes theLargeObjectwith 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
-