phpcassa
phpcassa copied to clipboard
DynamicCompositeType
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?
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.
You are right about that. Figured that out after I posted the issue.
Is anyone working on this feature? I'm probably going to do it, but I think I'll need some help
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.