Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support multi-indexes in IndexDefine #174

Merged
merged 4 commits into from
Oct 21, 2014
Merged

Support multi-indexes in IndexDefine #174

merged 4 commits into from
Oct 21, 2014

Conversation

mfenniak
Copy link
Owner

With #163 closed with improved index support, multi-indexes weren't included in that issue, so, here's this one instead. This requires identifying where multi-indexes behave differently than normal indexes (eg. GetAll). The index is defined on an array, but queried on individual elements. A different interface will need to be created and additional methods added to Query to support type-safe multiindex access.

TableTests.IndexCreateMulti should be cloned and used with the new type-safe approach.

Only GetAll supports multi-indexes; EqJoin also should for sure, and I'm
not sure if any other operations are supported on multi-indexes.
Reduces duplication in query operations that support both multi-indexes
and single-indexes without any difference in type signature.
mfenniak added a commit that referenced this pull request Oct 21, 2014
Support multi-indexes in IndexDefine
@mfenniak mfenniak merged commit e501f46 into master Oct 21, 2014
@mfenniak mfenniak deleted the issue_174 branch October 21, 2014 23:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant