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

Create complex secondary index on bins containing collections. 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,
	IndexCollectionType indexCollectionType,
	params CTX[] ctx
)

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
indexCollectionType  IndexCollectionType
index collection type
ctx  CTX
optional context to index on elements within a CDT

Return Value

IndexTask

Implements

IAerospikeClientCreateIndex(Policy, String, String, String, String, IndexType, IndexCollectionType, CTX)

Exceptions

AerospikeExceptionif index create fails

See Also