Class

QueryIndexManager

QueryIndexManager

QueryIndexManager provides an interface for managing the query indexes on the cluster.

Methods

# async buildDeferredIndexes(bucketName, optionsopt, callbackopt) → {Promise.<Array.<string>>}

Parameters:
Name Type Attributes Description
bucketName string
options Object <optional>
timeout number <optional>
callback BuildDeferredIndexesCallback <optional>

View Source queryindexmanager.js, line 387

Promise.<Array.<string>>

# async createIndex(bucketName, indexName, fields, optionsopt, callbackopt) → {Promise.<boolean>}

Parameters:
Name Type Attributes Description
bucketName string
indexName string
fields Array.<string>
options Object <optional>
ignoreIfExists boolean <optional>
deferred boolean <optional>
timeout number <optional>
callback CreateQueryIndexCallback <optional>

View Source queryindexmanager.js, line 167

Promise.<boolean>

# async createPrimaryIndex(bucketName, optionsopt, callbackopt) → {Promise.<boolean>}

Parameters:
Name Type Attributes Description
bucketName string
options Object <optional>
ignoreIfExists boolean <optional>
deferred boolean <optional>
timeout number <optional>
callback CreatePrimaryIndexCallback <optional>

View Source queryindexmanager.js, line 206

Promise.<boolean>

# async dropIndex(bucketName, indexName, optionsopt, callbackopt) → {Promise.<boolean>}

Parameters:
Name Type Attributes Description
bucketName string
indexName string
options Object <optional>
ignoreIfNotExists boolean <optional>
timeout number <optional>
callback DropQueryIndexCallback <optional>

View Source queryindexmanager.js, line 273

QueryIndexNotFoundError
Promise.<boolean>

# async dropPrimaryIndex(bucketName, optionsopt, callbackopt) → {Promise.<boolean>}

Parameters:
Name Type Attributes Description
bucketName string
options Object <optional>
ignoreIfNotExists boolean <optional>
timeout number <optional>
callback DropPrimaryIndexCallback <optional>

View Source queryindexmanager.js, line 309

QueryIndexNotFoundError
Promise.<boolean>

# async getAllIndexes(bucketName, optionsopt, callbackopt) → {Promise.<Array.<QueryIndex>>}

Parameters:
Name Type Attributes Description
bucketName string
options Object <optional>
timeout number <optional>
callback GetAllQueryIndexesCallback <optional>

View Source queryindexmanager.js, line 343

Promise.<Array.<QueryIndex>>

# async watchIndexes(bucketName, indexNames, duration, optionsopt, callbackopt) → {Promise.<boolean>}

Parameters:
Name Type Attributes Description
bucketName string
indexNames Array.<string>
duration number
options Object <optional>
watchPrimary number <optional>
callback WatchIndexesCallback <optional>

View Source queryindexmanager.js, line 456

Promise.<boolean>