Can someone provide an example (preferably in Python) of how a hash view with multiple keys works?  I see how to create one (and have), but how do you actually *use* it?  That is, how do you specify the muti-property key to a method like view.find()?

What I want to use this for is fast access to a two-column table (view) in which (a) a value may (will) appear multiple times in each column, but (b) a col1/col2 pair will appear only once in the entire table.

If my columns (properties) are, say, 'Child' and 'Parent', and I've defined a has view with something like
           view = view.hash(hashvw, 2)
how do I find a particular Child/Parent pair (that will be unique in the table)?

------------------------------
Gary H. Merrill, Principal Scientist
Analysis Applications, Research, and Technologies
GlaxoSmithKline Research and Development
Research Triangle Park, NC
919.483.8456
_____________________________________________
Metakit mailing list  -  Metakit@equi4.com
http://www.equi4.com/mailman/listinfo/metakit

Reply via email to