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.ClientAssembly: AerospikeClient (in AerospikeClient.dll) Version: 4.0.3.0 (4.0.3)
Syntax
Parameters
- policy
- Type: Aerospike.Client Policy
generic configuration parameters, pass in null for defaults
- ns
- Type: System String
namespace - equivalent to database name
- setName
- Type: System String
optional set name - equivalent to database table
- indexName
- Type: System String
name of secondary index
- binName
- Type: System String
bin name that data is indexed on
- indexType
- Type: Aerospike.Client IndexType
underlying data type of secondary index
- indexCollectionType
- Type: Aerospike.Client IndexCollectionType
index collection type
Exceptions
Exception | Condition |
---|---|
Aerospike.Client AerospikeException | if index create fails |
See Also