phpcassa icon indicating copy to clipboard operation
phpcassa copied to clipboard

DynamicCompositeType

Open hannesvdvreken opened this issue 13 years ago • 4 comments

Maybe we need CompositeTypes and DynamicCompositeTypes classes (http://www.slideshare.net/edanuff/indexing-in-cassandra) instead of array. Am I right about this: a key_validation_class can have only 2 types/datafields and a comparator as much as you'd like, when using DynamicCompositeType?

hannesvdvreken avatar May 22 '12 10:05 hannesvdvreken

DynamicCompositeType will definitely need its own class (in terms of phpcassa\Schema\DataType\CompositeType), but that should still be able to be represented as an array (that maps component names to values). In any case, DynamicCompositeType is not yet supported.

There's no restriction on the number of components you can include in key_validation_class. From Cassandra's perspective, it's just doing a little bit of validation on a binary string.

thobbs avatar May 24 '12 16:05 thobbs

You are right about that. Figured that out after I posted the issue.

hannesvdvreken avatar May 24 '12 16:05 hannesvdvreken

Is anyone working on this feature? I'm probably going to do it, but I think I'll need some help

akira28 avatar Apr 10 '13 17:04 akira28

I'm not aware of any work on it so far. Let me know what you need help with and I'll see what I can do.

thobbs avatar Apr 10 '13 17:04 thobbs