MCPcopy Create free account
hub / github.com/apache/cassandra-nodejs-driver / _getMaterializedView

Method _getMaterializedView

lib/metadata/index.js:663–676  ·  view source on GitHub ↗

* @param {String} keyspaceName * @param {String} name * @returns {Promise } * @private

(keyspaceName, name)

Source from the content-addressed store, hash-verified

661 * @private
662 */
663 async _getMaterializedView(keyspaceName, name) {
664 if (!this.initialized) {
665 throw this._uninitializedError();
666 }
667 let cache;
668 if (this.options.isMetadataSyncEnabled) {
669 const keyspace = this.keyspaces[keyspaceName];
670 if (!keyspace) {
671 return null;
672 }
673 cache = keyspace.views;
674 }
675 return await this._schemaParser.getMaterializedView(keyspaceName, name, cache);
676 }
677
678 /**
679 * Gets a map of cql function definitions or aggregates based on signature.

Callers 1

getMaterializedViewMethod · 0.95

Calls 2

_uninitializedErrorMethod · 0.95
getMaterializedViewMethod · 0.65

Tested by

no test coverage detected