Code Blocks Test
All Languages
// In the Java client, it is best to specify a bucket type/bucket/key
// Location object that can be used as a reference for further
// operations, as in the example below:
Location myKey = new Location(new Namespace("animals", "dogs"), "rufus");
bucket = client.bucket_type('animals').bucket('dogs')
obj = bucket.get('rufus')
$response = (new \Basho\Riak\Command\Builder\FetchObject($riak))
->buildLocation('rufus', 'users', 'animals')
->build()
->execute();
bucket = client.bucket_type('animals').bucket('dogs')
obj = bucket.get('rufus')
// Using the Riak .NET Client it is best to specify a bucket type/bucket/key
// RiakObjectId object that can be used as a reference for further
// operations
var id = new RiakObjectId("animals", "dogs", "rufus");
client.fetchValue({ bucketType: 'animals', bucket: 'dogs', key: 'rufus' }, function (err, rslt) {
assert(rslt.isNotFound);
});
{ok, Obj} = riakc_pb_socket:get(Pid,
{<<"animals">>, <<"dogs">>},
<<"rufus">>).
cmd, err = riak.NewFetchValueCommandBuilder().
WithBucketType("animals").
WithBucket("dogs").
WithKey("rufus").
Build()
if err != nil {
// error occurred
}
curl http://localhost:8098/types/animals/buckets/dogs/keys/rufus
All Languages 2
// In the Java client, it is best to specify a bucket type/bucket/key
// Location object that can be used as a reference for further
// operations, as in the example below:
Location myKey = new Location(new Namespace("animals", "dogs"), "rufus");
bucket = client.bucket_type('animals').bucket('dogs')
obj = bucket.get('rufus')
$response = (new \Basho\Riak\Command\Builder\FetchObject($riak))
->buildLocation('rufus', 'users', 'animals')
->build()
->execute();
bucket = client.bucket_type('animals').bucket('dogs')
obj = bucket.get('rufus')
// Using the Riak .NET Client it is best to specify a bucket type/bucket/key
// RiakObjectId object that can be used as a reference for further
// operations
var id = new RiakObjectId("animals", "dogs", "rufus");
client.fetchValue({ bucketType: 'animals', bucket: 'dogs', key: 'rufus' }, function (err, rslt) {
assert(rslt.isNotFound);
});
{ok, Obj} = riakc_pb_socket:get(Pid,
{<<"animals">>, <<"dogs">>},
<<"rufus">>).
cmd, err = riak.NewFetchValueCommandBuilder().
WithBucketType("animals").
WithBucket("dogs").
WithKey("rufus").
Build()
if err != nil {
// error occurred
}
curl http://localhost:8098/types/animals/buckets/dogs/keys/rufus
Misc
// In the Java client, it is best to specify a bucket type/bucket/key
// Location object that can be used as a reference for further
// operations, as in the example below:
Location myKey = new Location(new Namespace("animals", "dogs"), "rufus");
Lorem markdownum Byblida. Modo etiam litora mittat vellera infelix caeli. Studiosius forte, potuit pectore. Puer undas dignior iam turpe sorores abesse. Deae Saturnia levius viribus membra.
buckets.default.last_write_wins = true
buckets.default.r = 3
{default_bucket_props, [
{last_write_wins,true},
{r,3},
...
]}
Puer undas dignior iam turpe sorores abesse. Deae Saturnia levius viribus membra.
+sfwi 500
+scl false
Lorem markdownum Byblida.
{riak_cs, [
{parameter1, value},
{parameter2, value},
%% and so on...
]},
Modo etiam litora mittat vellera infelix caeli.
stanchion_host = 127.0.0.1:8085
stanchion_ssl = on
Summis rediit pavidus tersere et at prosiluit natus Phaethon noxa. Singultibus oblita foedabis orsa.
data-platform-admin join --help
Singultibus oblita foedabis orsa.
code test