发表于 2016-9-1 22:44:47
标 题: Re: twitter ID 怎么变成 uuid？
yes, i know. but i still want to convert that twitter ID to a uuid.
actually, there are various version of uuid, time based, name based, random.
twitter gives u the time based unique ID, the first 53 bits or so defines
the time lapsed. But let's say we have a cassandra schema table whose
primary key is uuid (or timeuuid). how can I convert the twitter ID to that
【 在 wwzz (一辈子当码工) 的大作中提到: 】
: why do you want to do that?
: UUID is an auto generated ID, mostly based on time
: If the ID from twitter is unique and random, use that as partition key