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

Extend Hecuba to support secondary indexes of Cassandra #167

Open
yolandab opened this issue Mar 15, 2018 · 0 comments
Open

Extend Hecuba to support secondary indexes of Cassandra #167

yolandab opened this issue Mar 15, 2018 · 0 comments
Assignees

Comments

@yolandab
Copy link
Collaborator

We need to support the creation of secondary indexes from Hecuba. We can use the same keyword that we use to specify multidimensional indexes implemented by Qbeast:

class miobj <StorageObj>:
'''
@ClassField dictname dict <key:int>,x:float,y:float,z:float>
@index_on dictname x,y,z  #this creates a Qbeast index on x,y,z
'''

With this class specification we are using Qbeast to create a multidimensional index on dictname using attributes x,y and z as dimensions.

If after the keyword "index_on" we find only one attribute we can assume that we want to add on that attribute a secondary index implemented by Cassandra

class miobj <StorageObj>:
'''
@ClassField dictname dict <key:int>,x:float,y:float,z:float>
@index_on dictname x  #this creates a Cassandra secondary index on x
'''
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants