Insert UUID from an existing string like cookie

11 views
Skip to first unread message

Jakub Liska

unread,
Jun 2, 2017, 9:49:19 AM6/2/17
to DataStax Java Driver for Apache Cassandra User Mailing List
Hey,

the driver expects java.util.UUID instance for CQL uuid type but what if I'm storing strings like cookies that comply to the UUID specification? 

java.util.UUID constructor is private, so I cannot do that.

I'd like to leverage the smaller size of it (16 bytes) instead of 128 bytes that the "text" type would have.

Steve Robenalt

unread,
Jun 2, 2017, 10:10:27 AM6/2/17
to Java Driver User mailing list
UUID.fromString(uuidstr);

--
You received this message because you are subscribed to the Google Groups "DataStax Java Driver for Apache Cassandra User Mailing List" group.
To unsubscribe from this group and stop receiving emails from it, send an email to java-driver-user+unsubscribe@lists.datastax.com.



--
  Steve Robenalt
Software Architect, HighWire Press, Inc.
www.highwire.orgLos Gatos, CA| Belfast, NI| Brighton, UK
 

Meet the HighWire team at SSP, Booth #101A

HighWire Publishers' Meeting, London, June 12-13
Register here:
http://bit.ly/HW_London





 

Jakub Liska

unread,
Jun 2, 2017, 10:12:27 AM6/2/17
to DataStax Java Driver for Apache Cassandra User Mailing List
Ahh, sorry, I was looking at it and interpreted that incorrectly ... Thanks !!
Reply all
Reply to author
Forward
0 new messages