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

Method isEmpty

lib/token.js:184–186  ·  view source on GitHub ↗

* A range is empty when start and end are the same token, except if * that is the minimum token, in which case the range covers the * whole ring. This is consistent with the behavior of CQL range * queries. * * @returns {boolean} Whether this range is empty.

()

Source from the content-addressed store, hash-verified

182 * @returns {boolean} Whether this range is empty.
183 */
184 isEmpty() {
185 return this.start.equals(this.end) && !this.start.equals(this._tokenizer.minToken());
186 }
187
188 /**
189 * A range wraps around the end of the ring when the start token

Callers 2

splitEvenlyMethod · 0.95
containsMethod · 0.95

Calls 2

equalsMethod · 0.65
minTokenMethod · 0.45

Tested by

no test coverage detected