Net::Riak::Object - holds meta information about a Riak object
version 0.1600
my $obj = $bucket->get('foo');
The Net::Riak::Object holds meta information about a Riak object, plus the object's data.
my $key = $obj->key;
Get the key of this object
Get or set the data stored in this object.
Get an array of Net::Riak::Link objects
Return true if the object exists, false otherwise.
Return an array of Siblings
Return the number of links
Add a new link
Return the number of siblings
Add a new sibling
Return a sibling
$obj->store($w, $dw);
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.
W-value, wait for this many partitions to respond before returning to client.
DW-value, wait for this many partitions to confirm the write before returning to client.
$obj->load($w);
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.
R-Value, wait for this many partitions to respond before returning to client.
$obj->delete($dw);
Delete this object from Riak.
DW-value. Wait until this many partitions have deleted the object before responding.
$obj->reset;
Reset this object
if ($obj->has_siblings) { ... }
Return true if this object has siblings
if ($obj->has_no_siblings) { ... }
Return true if this object has no siblings
Given the output of RiakUtils.http_request and a list of statuses, populate the object. Only for use by the Riak client library.
$obj->add_link($obj2, "tag");
Add a link to a Net::Riak::Object
$obj->remove_link($obj2, "tag");
Remove a link to a Net::Riak::Object
Start assembling a Map/Reduce operation
franck cuny <franck@lumberjaph.net>, robin edwards <robin.ge@gmail.com>
This software is copyright (c) 2011 by linkfluence.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install Net::Riak, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Net::Riak
CPAN shell
perl -MCPAN -e shell install Net::Riak
For more information on module installation, please visit the detailed CPAN module installation guide.