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

Class ByteOrderedToken

lib/token.js:112–124  ·  view source on GitHub ↗

* Represents a token from a Cassandra ring where the partitioner * is ByteOrderedPartitioner. * * The raw token type is a blob (represented by Buffer or Array).

Source from the content-addressed store, hash-verified

110 * The raw token type is a blob (represented by Buffer or Array).
111 */
112class ByteOrderedToken extends Token {
113 constructor(value) {
114 super(value);
115 }
116
117 getType() {
118 return _OrderedTokenType;
119 }
120
121 toString() {
122 return this._value.toString('hex').toUpperCase();
123 }
124}
125
126/**
127 * Represents a range of tokens on a Cassandra ring.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected