AerospikeClientCreateIndex(Policy, String, String, String, String, IndexType) Method

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.

Definition

Namespace: Aerospike.Client
Assembly: AerospikeClient (in AerospikeClient.dll) Version: 7.0.1
C#
public IndexTask CreateIndex(
	Policy policy,
	string ns,
	string setName,
	string indexName,
	string binName,
	IndexType indexType
)

Parameters

policy  Policy
generic configuration parameters, pass in null for defaults
ns  String
namespace - equivalent to database name
setName  String
optional set name - equivalent to database table
indexName  String
name of secondary index
binName  String
bin name that data is indexed on
indexType  IndexType
underlying data type of secondary index

Return Value

IndexTask

Implements

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

Exceptions

AerospikeExceptionif index create fails

See Also