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.
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, IndexCollectionType indexCollectionType )
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 - indexCollectionType
- Type: Aerospike.ClientIndexCollectionType
index collection type
Return Value
Type: IndexTaskExceptions
Exception | Condition |
---|---|
AerospikeException | if index create fails |
See Also