Click or drag to resize
RiakIndexAllKeys Method (String, String)
Create a Map reduce input phase to retrieve all keys from a bucket

Namespace:  RiakClient.Models.MapReduce.Inputs
Assembly:  RiakClient (in RiakClient.dll) Version: f9bb17a3f8ff6940b88010a52f202e3d55fe25c5
Syntax
public static RiakIndexInput AllKeys(
	string bucketType,
	string bucket
)

Parameters

bucketType
Type: SystemString
Bucket Type.
bucket
Type: SystemString
Bucket Name.

Return Value

Type: RiakIndexInput
The keys.
Remarks

This is a wrapper around a range query on the $key index in Riak. Working with secondary indexes requires that users enable the LevelDB backend and restart their cluster.

This makes the assumption that all keys fall between the Unicode characters \u000000 and \u10FFFF (16-bit Unicode). This would typically be used in a stand alone Map phase to return all keys as a List<RiakObjectId>. See https://gist.github.com/peschkaj/4772825 for a working example.

See Also