* Returns an array containing the Cassandra Version as an Array of Numbers having the major version in the first * position. * @returns {Array. }
()
| 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. |