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

Method isWrappedAround

lib/token.js:195–197  ·  view source on GitHub ↗

* A range wraps around the end of the ring when the start token * is greater than the end token and the end token is not the * minimum token. * * @returns {boolean} Whether this range wraps around.

()

Source from the content-addressed store, hash-verified

193 * @returns {boolean} Whether this range wraps around.
194 */
195 isWrappedAround() {
196 return this.start.compare(this.end) > 0 && !this.end.equals(this._tokenizer.minToken());
197 }
198
199 /**
200 * Splits this range into a list of two non-wrapping ranges.

Callers 2

unwrapMethod · 0.95
containsMethod · 0.95

Calls 3

compareMethod · 0.65
equalsMethod · 0.65
minTokenMethod · 0.45

Tested by

no test coverage detected