IAerospikeClientCreateIndex Method (Policy, String, String, String, String, IndexType)

Aerospike
Create scalar secondary index. This asynchronous server call will return before command is complete. The user can optionally wait for command completion by using the returned IndexTask instance.

Namespace:  Aerospike.Client
Assembly:  AerospikeClient (in AerospikeClient.dll) Version: 5.1.1.0 (5.1.1)
Syntax

C#
IndexTask CreateIndex(
	Policy policy,
	string ns,
	string setName,
	string indexName,
	string binName,
	IndexType indexType
)

Parameters

policy
Type: Aerospike.ClientPolicy
generic configuration parameters, pass in null for defaults
ns
Type: SystemString
namespace - equivalent to database name
setName
Type: SystemString
optional set name - equivalent to database table
indexName
Type: SystemString
name of secondary index
binName
Type: SystemString
bin name that data is indexed on
indexType
Type: Aerospike.ClientIndexType
underlying data type of secondary index

Return Value

Type: IndexTask
Exceptions

ExceptionCondition
AerospikeExceptionif index create fails
See Also

Reference