Aerospike.Database.LINQPadDriver.Extensions Namespace
Aerospike LINDPad Driver

SetRecords<(Of <(<'T>)>)>..::..CreateIndex Method (String, String, IndexType, IndexCollectionType, array<CTX>[]()[][])

Creates a secondary index on this set for a bin https://docs.aerospike.com/server/guide/query

Namespace:  Aerospike.Database.LINQPadDriver.Extensions
Assembly:  Aerospike.Database.LINQPadDriver (in Aerospike.Database.LINQPadDriver.dll)

Syntax


public SetRecords<T> CreateIndex(
	string idxName,
	string idxOnBin,
	IndexType indexType,
	IndexCollectionType indexCollectionType,
	params CTX[] ctx
)

Parameters

idxName
Type: String
The name of the index
idxOnBin
Type: String
The bin's values that will be used to build the index
indexType
Type: IndexType
The type of index to be built
indexCollectionType
Type: IndexCollectionType
The bin must be a collection and this determines on to build the index on the collection.
ctx
Type: array<CTX>[]()[][]
Provides additional processing of the collection