class Cassandra::Cluster::Schema::Partitioners::Murmur3

@private

Constants

LONG_MAX

@private

LONG_MIN

@private

Public Instance Methods

create_token(partition_key) click to toggle source
   # File lib/cassandra/cluster/schema/partitioners/murmur3.rb
31 def create_token(partition_key)
32   token = Cassandra::Murmur3.hash(partition_key)
33   token = LONG_MAX if token == LONG_MIN
34 
35   token
36 end
parse_token(token_string) click to toggle source
   # File lib/cassandra/cluster/schema/partitioners/murmur3.rb
38 def parse_token(token_string)
39   token_string.to_i
40 end