Package lemon :: Package external :: Package gadfly :: Module semantics :: Class BoundTuple
[show private | hide private]
[frames | no frames]

Class BoundTuple


Method Summary
  __init__(self, **bindings)
bindings are name>simpletuple associations.
  __add__(self, other)
combine self with other, return closure.
  __and__(self, other)
return closed constraints common to self and other.
  __cmp__(self, other)
  __hash__(self)
  __repr__(self)
  close(self)
infer equalities, if consistent.
  demarshal(self, args)
  domain(self)
  equate(self, equalities)
add equalities to self, only if not closed.
  initargs(self)
  marshaldata(self)
  relbind(self, dict, db)
return bindings of self wrt dict rel>att...
  relorder(self, db, allrels)
based on known constraints, pick an ordering for materializing relations.
  share_eqs(self)
make clone of self that shares equalities, closure.

Class Variable Summary
int clean = 1                                                                     
int closed = 0                                                                     

Method Details

__init__(self, **bindings)
(Constructor)

bindings are name>simpletuple associations.

__add__(self, other)
(Addition operator)

combine self with other, return closure.

__and__(self, other)
(And operator)

return closed constraints common to self and other.

close(self)

infer equalities, if consistent.
only recompute equality closure if not previously closed.
return None on inconsistency.

equate(self, equalities)

add equalities to self, only if not closed.
equalities should be seq of ( (name, att), (name, att) )

relbind(self, dict, db)

return bindings of self wrt dict rel>att

relorder(self, db, allrels)

based on known constraints, pick an
ordering for materializing relations.
db is database (ignored currently)
allrels is names of all relations to include (list).

share_eqs(self)

make clone of self that shares equalities, closure.
note: will share future side effects to eqs too.

Class Variable Details

clean

Type:
int
Value:
1                                                                     

closed

Type:
int
Value:
0                                                                     

Generated by Epydoc 2.0 on Mon Nov 10 15:08:31 2003 http://epydoc.sf.net