|
| LargeObject (ObjectStore store, long refId, long size, long currentSize, bool compressed, bool isComplete) |
|
void | Dispose () |
|
int | Read (long offset, byte[] buffer, int length) |
| Reads the content of the object, starting at a given offset, into the buffer given, for the number of bytes specified. More...
|
|
void | Write (long offset, byte[] buffer, int length) |
| Write the given binary content into the object, starting at the given offset for the number of bytes specified. More...
|
|
void | Complete () |
| Marks the object as complete. More...
|
|
void | Establish () |
| Establishes a reference of the object to the underlying store which contains it. More...
|
|
bool | Release () |
| Removes a reference of the object from the underlying store which contains it. More...
|
|
void | MarkComplete () |
|
Definition at line 217 of file ObjectStore.cs.
Deveel.Data.Store.ObjectStore.LargeObject.LargeObject |
( |
ObjectStore |
store, |
|
|
long |
refId, |
|
|
long |
size, |
|
|
long |
currentSize, |
|
|
bool |
compressed, |
|
|
bool |
isComplete |
|
) |
| |
|
inline |
void Deveel.Data.Store.ObjectStore.LargeObject.Complete |
( |
| ) |
|
|
inline |
Marks the object as complete.
After this method is invoked, the object is marked as complete and it cannot be written further.
Any call to Read before this method is called will throw an exception.
- See also
- IsComplete, Read, Write
Implements Deveel.Data.Store.ILargeObject.
Definition at line 254 of file ObjectStore.cs.
readonly ObjectStore store
void CompleteObject(LargeObject obj)
void Deveel.Data.Store.ObjectStore.LargeObject.Dispose |
( |
| ) |
|
|
inline |
void Deveel.Data.Store.ObjectStore.LargeObject.Establish |
( |
| ) |
|
|
inline |
Establishes a reference of the object to the underlying store which contains it.
A single object can be referenced multiple times within a store, and this prevents it to be removed from the store if it is still in use within the system.
- See also
- Release
Implements Deveel.Data.Store.ILargeObject.
Definition at line 258 of file ObjectStore.cs.
long Id
Gets the unique identifier of the object within the containing store.
readonly ObjectStore store
void EstablishReference(long id)
void Deveel.Data.Store.ObjectStore.LargeObject.MarkComplete |
( |
| ) |
|
|
inline |
int Deveel.Data.Store.ObjectStore.LargeObject.Read |
( |
long |
offset, |
|
|
byte[] |
buffer, |
|
|
int |
length |
|
) |
| |
|
inline |
Reads the content of the object, starting at a given offset, into the buffer given, for the number of bytes specified.
- Parameters
-
offset | The zero-based offset within the object at which to start reading the contents. |
buffer | The array in which to write the contents read. |
length | The desired number of bytes to read from the object contents. |
- Returns
- Returns the actual number of bytes read from the object.
Implements Deveel.Data.Store.ILargeObject.
Definition at line 242 of file ObjectStore.cs.
int ReadObjectPart(long id, long objOffset, byte[] buffer, int off, int length)
long Id
Gets the unique identifier of the object within the containing store.
readonly ObjectStore store
bool Deveel.Data.Store.ObjectStore.LargeObject.Release |
( |
| ) |
|
|
inline |
Removes a reference of the object from the underlying store which contains it.
The act of removing a reference of an object from the containing store does not automatically destroys it: in fact, this happens only if all references established for the object have been released.
- Returns
- Returns
true
if the object was removed from the store at its release, or false
if it was retained.
- See also
- Establish
Implements Deveel.Data.Store.ILargeObject.
Definition at line 262 of file ObjectStore.cs.
long Id
Gets the unique identifier of the object within the containing store.
bool ReleaseReference(long id)
readonly ObjectStore store
void Deveel.Data.Store.ObjectStore.LargeObject.Write |
( |
long |
offset, |
|
|
byte[] |
buffer, |
|
|
int |
length |
|
) |
| |
|
inline |
Write the given binary content into the object, starting at the given offset for the number of bytes specified.
- Parameters
-
offset | The zero-based starting offset at which to start to write the specified contents. |
buffer | The content to write to the underlying object. |
length | The number of bytes from the given buffer to write into the object. |
Implements Deveel.Data.Store.ILargeObject.
Definition at line 246 of file ObjectStore.cs.
248 throw new IOException(
"The object is complete and cannot be written.");
long Id
Gets the unique identifier of the object within the containing store.
readonly ObjectStore store
void WriteObjectPart(long id, long objOffset, byte[] buffer, int off, int length)
readonly ObjectStore Deveel.Data.Store.ObjectStore.LargeObject.store |
|
private |
long Deveel.Data.Store.ObjectStore.LargeObject.CurrentSize |
|
getprivate set |
ObjectId Deveel.Data.Store.ObjectStore.LargeObject.Id |
|
getprivate set |
bool Deveel.Data.Store.ObjectStore.LargeObject.IsComplete |
|
getprivate set |
bool Deveel.Data.Store.ObjectStore.LargeObject.IsCompressed |
|
getprivate set |
long Deveel.Data.Store.ObjectStore.LargeObject.RawSize |
|
getprivate set |
The documentation for this class was generated from the following file:
- /var/calculate/remote/distfiles/egit-src/deveeldb.git/src/deveeldb/Deveel.Data.Store/ObjectStore.cs