Class Builder
This class follows the Builder design pattern and is the preferred method for creating Basho\Riak\Command objects for interacting with your Riak data cluster.
use Basho\Riak\Command; use Basho\Riak\Bucket; use Basho\Riak\Location; $bucket = new Bucket('users'); $command = (new Command\Builder(Command::STORE_OBJECT)) ->withObject(new Object('test_data')) ->atLocation(new Location('test_key', $bucket)) ->build();
Direct known subclasses
Basho\Riak\Command\Builder\DeleteObject,
Basho\Riak\Command\Builder\FetchBucketProperties,
Basho\Riak\Command\Builder\Ping,
Basho\Riak\Command\Builder\QueryIndex,
Basho\Riak\Command\Builder\Search\DeleteIndex,
Basho\Riak\Command\Builder\Search\FetchIndex,
Basho\Riak\Command\Builder\Search\FetchObjects,
Basho\Riak\Command\Builder\Search\FetchSchema,
Basho\Riak\Command\Builder\Search\StoreIndex,
Basho\Riak\Command\Builder\Search\StoreSchema,
Basho\Riak\Command\Builder\SetBucketProperties,
Basho\Riak\Command\Builder\StoreObject,
Basho\Riak\Command\Builder\FetchCounter,
Basho\Riak\Command\Builder\TimeSeries\DeleteRow,
Basho\Riak\Command\Builder\TimeSeries\FetchRow,
Basho\Riak\Command\Builder\TimeSeries\Query,
Basho\Riak\Command\Builder\TimeSeries\StoreRows,
Basho\Riak\Command\Builder\UpdateMap,
Basho\Riak\Command\Builder\UpdateSet,
Basho\Riak\Command\Builder\FetchMap,
Basho\Riak\Command\Builder\FetchObject,
Basho\Riak\Command\Builder\FetchPreflist,
Basho\Riak\Command\Builder\FetchSet,
Basho\Riak\Command\Builder\FetchStats,
Basho\Riak\Command\Builder\IncrementCounter,
Basho\Riak\Command\Builder\MapReduce\FetchObjects
Indirect known subclasses
Basho\Riak\Command\Builder\Search\AssociateIndex,
Basho\Riak\Command\Builder\Search\DissociateIndex,
Basho\Riak\Command\Builder\TimeSeries\DescribeTable
Namespace: Basho\Riak\Command
Author: Christopher Mancini
Located at Riak/Command/Builder.php
Methods summary
public
|
|
abstract public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
protected
boolean
|
|
protected
|
Properties summary
protected
|
$riak
|
#
null
|
protected
array
|
$parameters
Command parameters |
#
[]
|
protected
array
|
$headers
Command request headers |
#
[]
|
protected
boolean
|
$verbose
|
#
false
|