Bucket
category |
Basho |
---|---|
author |
Riak team (https://github.com/basho/riak-php-client/contributors) |
__construct(\Basho\Riak\Riak $client, string $name)
getName() : string
string
getR($r = NULL) : integer
Returns the buckets R-value If it is set, otherwise return the R-value for the client.
integer
setR(integer $r) : $this
get(...) and getBinary(...) operations that do not specify an R-value will use this value.
see | |
---|---|
integer
$this
getW($w) : integer
If it is set for this bucket, otherwise return the W-value for the client.
integer
setW(integer $w) : $this
See setR(...) for more information.
integer
$this
getDW($dw) : integer
If it is set for this bucket, otherwise return the DW-value for the client.
integer
setDW(integer $dw) : $this
See setR(...) for more information.
integer
$this
newObject(string $key, object $data = NULL) : Object
string
object
Object
newBinary(string $key, object $data, string $content_type = 'application/json') : Object
string
object
string
Object
get(string $key, int $r = NULL) : Object
string
int
Object
getBinary(string $key, int $r = NULL) : Object
string
int
Object
setNVal(integer $nval)
The N-value is the number of replicas that will be written of each object in the bucket. Set this once before you write any data to the bucket, and never change it again, otherwise unpredictable things could happen. This should only be used if you know what you are doing.
integer
getNVal() : integer
integer
setAllowMultiples(boolean $bool)
If set to true, then writes with conflicting data will be stored and returned to the client. This situation can be detected by calling hasSiblings() and getSiblings(). This should only be used if you know what you are doing.
boolean
getAllowMultiples() : Boolean
Boolean
setProperty(string $key, mixed $value)
This should only be used if you know what you are doing.
string
mixed
getProperty(string $key) : mixed
string
mixed
setProperties(array $props)
This should only be used if you know what you are doing.
array
getProperties() : Array
Array
getKeys() : Array
Note: this operation is pretty slow.
Array
indexSearch(string $indexName, string $indexType, string|int $startOrExact, $end = NULL, $dedupe = false) : array
author |
Eric Stevens estevens@taglabsinc.com |
---|---|
string
string
string|int
array
of Links