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

Method stringify

lib/tokenizer.js:347–353  ·  view source on GitHub ↗
(token)

Source from the content-addressed store, hash-verified

345 }
346
347 stringify(token) {
348 // Get the underlying MutableLong
349 const value = token.getValue();
350 // We need a way to uniquely represent a token, it doesn't have to be the decimal string representation
351 // Using the uint16 avoids divisions and other expensive operations on the longs
352 return value.getUint16(0) + ',' + value.getUint16(1) + ',' + value.getUint16(2) + ',' + value.getUint16(3);
353 }
354}
355
356/**

Callers

nothing calls this directly

Calls 2

getUint16Method · 0.80
getValueMethod · 0.65

Tested by

no test coverage detected