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 direct access by secondary indexes of Cassandra and Qbeast indexes #168

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

Comments

@yolandab
Copy link
Collaborator

Right now, hecuba supports the usage of multidimensional indexing through the iteration of a chunk of indexed elements. First, the programmer must filter the chunk of interest and, then, iterates across all the elements in the chunk.

We miss the interface to support direct access to an indexed element. This is a proposal of how to implement it:

class myclass (StorageObj):
'''
@ClassField mydict dict <<key:int>,x:float,y:float,z:float>
@index_on mydict x,y,z as index_name
'''
d=mydict("Somedata")
r=d.index_name[v1,v2,v3] 

After executing this code, r should contain the whole record. In this example (key,x,y,z)

Do you agree?

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

No branches or pull requests

2 participants