Create an account

Very important

  • To access the important data of the forums, you must be active in each forum and especially in the leaks and database leaks section, send data and after sending the data and activity, data and important content will be opened and visible for you.
  • You will only see chat messages from people who are at or below your level.
  • More than 500,000 database leaks and millions of account leaks are waiting for you, so access and view with more activity.
  • Many important data are inactive and inaccessible for you, so open them with activity. (This will be done automatically)


Thread Rating:
  • 259 Vote(s) - 3.39 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Getting value from a key type TimeUUID in Cassandra-PHP

#1
I'm new in cassandra and I wanna get the values from a column family, where the key is a TimeUUIDType.

I'm using PHP with PHPCassa, and I can insert(set) correctly in the column family, generating uuid with the function:

$key = CassandraUtil::uuid1();

The problem happen when I try to do a get in the column family, because i have and uuid in String format( something like that):

$uuidString= "e2658820-69f2-11e1-af9a-95dd4f324d9";

I would like to know if is possible cast or transform an String form to a valid uuid for cassandra in php or phpcassa, because my purpose is in another page create the correct uuid from the $uuuidString.

Thanks.
Reply

#2
`CassandraUtil::import($uuidString)` will handle that.

**Edit**
As of phpcassa 1.0+, `\phpcassa\UUID::import()` is the proper method.
Reply



Forum Jump:


Users browsing this thread:
1 Guest(s)

©0Day  2016 - 2023 | All Rights Reserved.  Made with    for the community. Connected through