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

Method hash

lib/tokenizer.js:54–56  ·  view source on GitHub ↗

* Creates a token based on the Buffer value provided * @abstract * @param {Buffer|Array} value * @returns {Token} Computed token

(value)

Source from the content-addressed store, hash-verified

52 * @returns {Token} Computed token
53 */
54 hash(value) {
55 throw new Error('You must implement a hash function for the tokenizer');
56 }
57
58 /**
59 * Parses a token string and returns a representation of the token

Callers 4

getReplicasMethod · 0.45
newTokenMethod · 0.45
encoder-tests.jsFile · 0.45
tokenizer-tests.jsFile · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected