MapReduce
| category |
Basho |
|---|---|
| author |
Riak team (https://github.com/basho/riak-php-client/contributors) |
__construct(\Basho\Riak\Riak $client) : \Basho\Riak\MapReduce
add(mixed $arg1, mixed $arg2 = NULL, mixed $arg3 = NULL) : \Basho\Riak\MapReduce
This method takes three different forms, depending on the provided inputs. You can specify either a Object, a string bucket name, or a bucket, key, and additional arg.
mixedObject or Bucket
mixedKey or blank
mixedArg or blank
\Basho\Riak\MapReduce
search(string $bucket, $query)
This command will return an error unless executed against a Riak Search cluster.
string
link(string $bucket = '_', string $tag = '_', boolean $keep = FALSE) : $this
stringstringboolean$this
map(mixed $function, \Basho\Riak\array() $options = array()) : $this
mixed\Basho\Riak\array()$this
reduce(mixed $function, \Basho\Riak\array() $options = array()) : $this
mixed\Basho\Riak\array()$this
key_filter(array $filter) : $this
If there are already existing filters, an "and" condition will be used to combine them. Alias for key_filter_and
array$this
key_filter_and(array $filter) : $this
If there are already existing filters, an "and" condition will be used to combine them.
array$this
key_filter_or(array $filter) : $this
If there are already existing filters, an "or" condition will be used to combine with the existing filters.
array
$this
key_filter_operator(string $operator, array $filter) : $this
If there are already existing filters, the provided conditional operator will be used to combine with the existing filters.
stringarray
$this
indexSearch(string $indexName, string $indexType, string|int $startOrExact, $end = NULL) : $this
Note that you can only do index searches on a bucket, so this is incompatible with object or key operations, as well as key filter operations.
stringThe name of the index to search.
stringThe index type ('bin' or 'int')
string|intStart value to search for, or exact value if no end value specified.
$this
run(integer $timeout = NULL) : \Basho\Riak\array()
Returns an array of results, or an array of Link objects if the last phase is a link phase.
integer\Basho\Riak\array()