MapCollection

Collection of index maps having unique names. It allow us to perform bulk operations such as init, remove, insert on all index maps that have been registered in the collection.

Members

collectionMap.<string, IndexMap>

Collection of index maps.

Methods

get(name){Array|IndexMap}

Get index map for the provided name.

Parameters:
Name Type Description
name string optional

Name of the index map.

Returns: {Array|IndexMap}

getLength(){number}

Get collection size.

Returns: {number}

initEvery(length)

Set default values to index maps within collection.

Parameters:
Name Type Description
length number

Destination length for all stored maps.

register(uniqueName, indexMap)

Register custom index map.

Parameters:
Name Type Description
uniqueName string

Unique name of the index map.

indexMap IndexMap

Index map containing miscellaneous (i.e. Meta data, indexes sequence), updated after remove and insert data actions.

unregister(name)

Unregister custom index map.

Parameters:
Name Type Description
name string

Name of the index map.

Class: MapCollection