GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
Net::Riak::Object(3) User Contributed Perl Documentation Net::Riak::Object(3)

Net::Riak::Object - holds meta information about a Riak object

version 0.1702

    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
Return the number of links
Add a new link
Return the number of siblings
Add a new sibling
Return a sibling
Returns a hash containing all the meta name/value pairs

    my %metadata = $obj->all_meta;
    
Returns the number of usermetas associated with the object. Typical use is as a predicate method.

    if ( $obj->has_meta ) { ... }
    
Sets a usermeta on the object, overriding any existing value for that key

    $obj->set_meta( key => $value );
    
Reads a single usermeta from the object. If multiple usermeta headers have been set for a single key (eg via another client), the values will be separated with a comma; Riak will concatenate the input headers and only return a single one.
removes a single usermeta from the object. Returns false on failure, eg if the key did not exist on the object.

 $obj->remove_meta( 'key' ) || die( "could not remove" );
    
    $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
Start assembling a Map/Reduce operation
Start assembling a Map/Reduce operation
Start assembling a Map/Reduce operation

franck cuny <franck@lumberjaph.net>, robin edwards <robin.ge@gmail.com>

This software is copyright (c) 2013 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.

2013-03-20 perl v5.40.2

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.