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.ClientThis method is only supported by Aerospike 3 servers.
Assembly: AerospikeClient (in AerospikeClient.dll) Version: 3.1.0.0 (3.1.1)
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
Exceptions
Exception | Condition |
---|---|
Aerospike.Client AerospikeException | if index create fails |
See Also