class Cassandra::Cluster::Schema::Partitioners::Random
@private
Public Instance Methods
create_token(partition_key)
click to toggle source
# File lib/cassandra/cluster/schema/partitioners/random.rb 26 def create_token(partition_key) 27 Digest::MD5.hexdigest(partition_key).to_i(16) 28 end
parse_token(token_string)
click to toggle source
# File lib/cassandra/cluster/schema/partitioners/random.rb 30 def parse_token(token_string) 31 token_string.to_i 32 end