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

Method getCassandraVersion

lib/host.js:427–432  ·  view source on GitHub ↗

* Returns an array containing the Cassandra Version as an Array of Numbers having the major version in the first * position. * @returns {Array. }

()

Source from the content-addressed store, hash-verified

425 * @returns {Array.<Number>}
426 */
427 getCassandraVersion() {
428 if (!this.cassandraVersion) {
429 return utils.emptyArray;
430 }
431 return this.cassandraVersion.split('-')[0].split('.').map(x => parseInt(x, 10));
432 }
433
434 /**
435 * Gets the DSE version of the host as an Array, containing the major version in the first position.

Callers

nothing calls this directly

Calls 1

splitMethod · 0.45

Tested by

no test coverage detected