Class: Token

Token()

Represents a token on the Cassandra ring.

Constructor

new Token()

Source:

Methods

compare(other) → {Number}

Returns 0 if the values are equal, 1 if greater than other, -1 otherwise.

Parameters:
Name Type Description
other Token
Source:
Returns:
Type
Number

getType() → {Object}

Source:
Returns:

The type info for the type of the value of the token.

Type
Object

getValue() → {*}

Source:
Returns:

The raw value of the token.

Type
*