Questions tagged [timeuuid]

Use it to mark specific Cassandra questions that are involving a TimeUUID instead of a generic UUID.

TimeUUID is a random global unique identifier (UUID) of 16 bytes.

Sample hex presentation: a4a70900-24e1-11df-8924-001ff3591711

See http://en.wikipedia.org/wiki/Universally_Unique_Identifier

A TimeUUID is a basic Cassandra data type. An important property is that TimeUUIDs can be ordered by time.

50 questions
63
votes
3 answers

Cassandra UUID vs TimeUUID benefits and disadvantages

Given that TimeUUID handily allows you to use now() in CQL, are there any reasons you wouldn't just go ahead and always use TimeUUID instead of plain old UUID?
Jay
  • 19,649
  • 38
  • 121
  • 184
23
votes
3 answers

In Cassandra terminology, what is TimeUUID?

In Cassandra terminology, what is TimeUUID and when is it used?
knorv
  • 49,059
  • 74
  • 210
  • 294
11
votes
4 answers

How to generate TimeUUID in Java/Scala

Does anyone know how to generate TimeBased UUIDs in Java/Scala? Here is the column family: CREATE table col(ts timeuuid) I'm using Cassandra 1.2.4 Appreciate your help!
Avis
  • 496
  • 1
  • 5
  • 18
5
votes
1 answer

Java UUID compareTo not working correctly for Type1 UUIDs

While working on a use case where the data needs to be sorted on UUID which are all Type 1 or timebased and generated using Datastax Cassandra Java driver library (UUIDS.timebased()), i found that UUID.compareTo is not sorting some of the UUIDs…
blankCoder
  • 172
  • 1
  • 9
5
votes
1 answer

Cassandra says "InvalidQueryException: Invalid version for TimeUUID type" when saving java.util.UUID

I'm trying to save java.util.UUID to Cassandra column of type timeuuid. For example, that is a default spring-data-cassandra mapping: http://docs.spring.io/spring-data/cassandra/docs/current/reference/html/#mapping-conversion . Value of UUID is…
Dmitriusan
  • 11,525
  • 3
  • 38
  • 38
5
votes
2 answers

How to convert Time UUID to date time stamp in c#

I have a TimeUuid which I need to convert to a DateTime. Is there a way to do this in C#? I am using a CassandraCsharpDriver from DataStax, but it does not have the capability to convert the TimeUuid to Datetime, but the opposite is…
KhanS
  • 1,167
  • 2
  • 12
  • 27
5
votes
3 answers

TimeUUID vs timestamp in Cassandra?

If we can extract time from TimeUUID, does it make any sense to use timestamp as another column in Cassandra? Also how can we extract Time from TimeUUID and make range queries (eg. Jan 2016 to May 2016) on it?
4
votes
1 answer

How to guarantee monotonically increasing timeuuid when selecting from scylla

I have a table with timeuuid as a clustering key. CREATE TABLE event ( domain TEXT, createdAt TIMEUUID, kind TEXT, PRIMARY KEY (domain, createdAt) ); I wish to select the data in order of this clustering key with the…
let4be
  • 1,048
  • 11
  • 30
4
votes
3 answers

how do i get the date/time back from a UUID type 1

I have included the following UUID library compile group: 'com.fasterxml.uuid', name: 'java-uuid-generator', version: '3.1.5' in my build. i have some code like this NoArgGenerator timeBasedGenerator = Generators.timeBasedGenerator() …
WILLIAM WOODMAN
  • 1,185
  • 5
  • 19
  • 36
4
votes
3 answers

Sortable UUID v1 for multi-platform application

We are looking for a solution to generate a unique id for messages/signals that are exchanged between clients on the Web, iOS, and Android and later persisted on the backend. Solution have to be standardized available on multiple…
Marcel Mandatory
  • 1,447
  • 13
  • 25
4
votes
1 answer

Cassandra : Select records based on "timeuuid where conditions"

I created one table in Cassandra and want to select data based on where condition of the column which has timeuuid type. CREATE TABLE shahid.stock_ticks( symbol varchar, date int, trade timeuuid, trade_details text, PRIMARY KEY ( (symbol, date),…
Mohd Shahid
  • 1,538
  • 2
  • 33
  • 66
3
votes
1 answer

cassandra timeuuid columns showing buffer type data insted of string

I am retrieving data from Cassandra timeuuid column using NodeJS Cassandra driver. Now the data retrieved as buffer type instead of string type. I need the data as string type
Prorammer81
  • 198
  • 1
  • 1
  • 15
3
votes
5 answers

Solr Mapping for Cassandra TimeUUID field

What is best mapping for Cassandra TimeUUID field to Solr. I am using DSE 3.2.4 version
2
votes
1 answer

Converting UnixTimestamp to TIMEUUID for Cassandra

I'm learning all about Apache Cassandra 3.x.x and I'm trying to develop some stuff to play around. The problem is that I want to store data into a Cassandra table which contains these columns: id (UUID - Primary Key) | Message (TEXT) | REQ_Timestamp…
franpen
  • 322
  • 1
  • 4
  • 18
2
votes
0 answers

Convert cassandra timeuuid with cqlsh copy command

I have a table CREATE TABLE logs ( transaction_id text, timestamp timeuuid, action text, event text ) which I have to copy to a csv at the end of the day. Timestamp needs to be converted into a human readable time format. Is it possible to do it…
Arslan Mehboob
  • 1,012
  • 1
  • 9
  • 21
1
2 3 4