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
stringobjectObject
newBinary(string $key, object $data, string $content_type = 'application/json') : Object
stringobjectstringObject
get(string $key, int $r = NULL) : Object
stringintObject
getBinary(string $key, int $r = NULL) : Object
stringintObject
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.
integergetNVal() : 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.
booleangetAllowMultiples() : Boolean
Boolean
setProperty(string $key, mixed $value)
This should only be used if you know what you are doing.
stringmixedgetProperty(string $key) : mixed
stringmixed
setProperties(array $props)
This should only be used if you know what you are doing.
arraygetProperties() : 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 |
|---|---|
stringstringstring|int
arrayof Links