Member Function Documentation
| addLink |
( |
$ |
obj, |
|
|
$ |
tag = NULL |
|
) |
| |
Delete this object from Riak.
- Parameters:
-
| integer | $dw | - DW-value. Wait until this many partitions have deleted the object before responding. |
- Returns:
- $this
Return true if the object exists, false otherwise. Allows you to detect a get(...) or getBinary(...) operation where the object is missing.
- Returns:
- boolean
Get the content type of this object. This is either text/json, or the provided content type if the object was created via newBinary(...).
- Returns:
- string
Get the data stored in this object. Will return a associative array, unless the object was constructed with newBinary(...) or getBinary(...), in which case this will return a string.
- Returns:
- array or string
Get the key of this object.
- Returns:
- string
Return an array of RiakLink objects.
- Returns:
- array()
| getSibling |
( |
$ |
i, |
|
|
$ |
r = NULL |
|
) |
| |
Retrieve a sibling by sibling number.
- Parameters:
-
| integer | $i | - Sibling number. |
| integer | $r | - R-Value. Wait until this many partitions have responded before returning to client. |
- Returns:
- RiakObject.
Get the number of siblings that this object contains.
- Returns:
- integer
| getSiblings |
( |
$ |
r = NULL ) |
|
Retrieve an array of siblings.
- Parameters:
-
| integer | $r | - R-Value. Wait until this many partitions have responded before returning to client. |
- Returns:
- array of RiakObject
Return true if this object has siblings.
- Returns:
- boolean
| populate |
( |
$ |
response, |
|
|
$ |
expected_statuses |
|
) |
| |
Given the output of RiakUtils::httpRequest and a list of statuses, populate the object. Only for use by the Riak client library.
- Returns:
- $this
Reload the object from Riak. When this operation completes, the object could contain new metadata and a new value, if the object was updated in Riak since it was last retrieved.
- Parameters:
-
| integer | $r | - R-Value, wait for this many partitions to respond before returning to client. |
- Returns:
- $this
| removeLink |
( |
$ |
obj, |
|
|
$ |
tag = NULL |
|
) |
| |
Remove a link to a RiakObject.
- Parameters:
-
- Returns:
- $this
| setContentType |
( |
$ |
content_type ) |
|
Set the content type of this object.
- Parameters:
-
| string | $content_type | - The new content type. |
- Returns:
- $this
Set the data stored in this object. This data will be JSON encoded unless the object was constructed with newBinary(...) or getBinary(...).
- Parameters:
-
| mixed | $data | - The data to store. |
- Returns:
- $data
Get the HTTP status from the last operation on this object.
- Returns:
- integer
| store |
( |
$ |
w = NULL, |
|
|
$ |
dw = NULL |
|
) |
| |
Store the object in Riak. When this operation completes, the object could contain new metadata and possibly new data if Riak contains a newer version of the object according to the object's vector clock.
- Parameters:
-
| integer | $w | - W-value, wait for this many partitions to respond before returning to client. |
| integer | $dw | - DW-value, wait for this many partitions to confirm the write before returning to client. |
- Returns:
- $this
The documentation for this class was generated from the following file: