Obtener valor de un tipo de clave TimeUUID en Cassandra-PHP

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.

Gracias.

preguntado el 09 de marzo de 12 a las 17:03

1 Respuestas

CassandraUtil::import($uuidString) will handle that.

Editar As of phpcassa 1.0+, \phpcassa\UUID::import() is the proper method.

Respondido 01 ago 13, 18:08

@user815672 you're welcome! If this works for you, don't forget to accept the answer so that others can know the question has been solved. - tyler hobbs

No es la respuesta que estás buscando? Examinar otras preguntas etiquetadas or haz tu propia pregunta.