Issue with fetching the byte key from the result set of "get_indexed_slices"

14 views
Skip to first unread message

Manish Zope

unread,
Feb 4, 2014, 6:59:28 AM2/4/14
to phpc...@googlegroups.com
Hello,

I have recently updated to version 1.1.0. I am trying to get the user infromation from the indexed column family for the user with "get_indexed_slices"
When I iterate over the resultset object returned I get following string.


string(226) "O:13:"phpcassa\UUID":8:{s:8:"*bytes";s:16:"A*���=C���k&� �";s:6:"*hex";N;s:9:"*string";s:36:"412ab4f5-e83d-43bc-b0d2-6b269400019f";s:6:"*urn";N;s:10:"*version";N;s:10:"*variant";N;s:7:"*node";N;s:7:"*time";N;}"

On unserializing I get -
object(phpcassa\UUID)#144 (8) { ["bytes":protected]=> string(16) "A*���=C���k&� �" ["hex":protected]=> NULL ["string":protected]=> string(36) "412ab4f5-e83d-43bc-b0d2-6b269400019f" ["urn":protected]=> NULL ["version":protected]=> NULL ["variant":protected]=> NULL ["node":protected]=> NULL ["time":protected]=> NULL }

When I cast above object tostring I get string representation like "412ab4f5-e83d-43bc-b0d2-6b269400019f". But I want A*���=C���k&� � this portion.
How can I do that? Any help will be appreciated.

Thanks
Manish

Tyler Hobbs

unread,
Feb 4, 2014, 2:17:37 PM2/4/14
to phpc...@googlegroups.com
UUID objects have a couple of attributes that might work for you: 'bytes' and 'hex'.  For example $mybytes = $uuid->bytes.


--
You received this message because you are subscribed to the Google Groups "phpcassa" group.
To unsubscribe from this group and stop receiving emails from it, send an email to phpcassa+u...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.



--
Tyler Hobbs
DataStax
Reply all
Reply to author
Forward
0 new messages