[Metakit] Hash views with multiple keys?

gary.h.merrill at gsk.com gary.h.merrill at gsk.com
Sun Jan 8 17:28:59 CET 2006


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.equi4.com/pipermail/metakit/attachments/20060108/6b85f3d4/attachment.htm


More information about the Metakit mailing list