Skip to content
This repository has been archived by the owner on Aug 4, 2020. It is now read-only.

DynamicCompositeType #75

Open
hannesvdvreken opened this issue May 22, 2012 · 4 comments
Open

DynamicCompositeType #75

hannesvdvreken opened this issue May 22, 2012 · 4 comments

Comments

@hannesvdvreken
Copy link

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?

@thobbs
Copy link
Owner

thobbs commented May 24, 2012

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.

@hannesvdvreken
Copy link
Author

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

@akira28
Copy link

akira28 commented Apr 10, 2013

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

@thobbs
Copy link
Owner

thobbs commented Apr 10, 2013

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants