Package lemon :: Package external :: Package gadfly :: Module store :: Class Relation0
[show private | hide private]
[frames | no frames]

Class Relation0

Known Subclasses:
View

quick and dirty in core relation representation.
  self.tuples contains tuples or 0 if erased.
tuples must not move (to preserve indices)
unless indices regenerate.

Method Summary
  __init__(self, attribute_names, tuples, filter)
  __repr__(self)
  add_index(self, index, recordtuples)
unset recordtuples if the index is initialized already.
  add_tuples(self, tuples)
  attributes(self)
  choose_index(self, attributes)
choose an index including subset of attributes or None...
  drop_index(self, index)
  drop_indices(self, db)
  dump(self, file)
  erase_tuples(self, seqnums)
  irepr(self)
  load(self, file)
checksum must succeed.
  regenerate_indices(self)
  reset_tuples(self, tups, seqnums)
  rows(self, andseqnums)
  set_empty(self)
  shadow(self, otherrelation, log, name, inshadowdb)
return structural replica of otherrelation (as self)...
  unshadow(self)
make self into a replacement for shadowed, return self.

Class Variable Summary
int is_view = 0                                                                     

Method Details

add_index(self, index, recordtuples=1)

unset recordtuples if the index is initialized already.

choose_index(self, attributes)

choose an index including subset of attributes or None

load(self, file)

checksum must succeed.

shadow(self, otherrelation, log, name, inshadowdb)

return structural replica of otherrelation (as self)

for non-updatable relation (eg, view) may return otherrelation

unshadow(self)

make self into a replacement for shadowed, return self.

Class Variable Details

is_view

Type:
int
Value:
0                                                                     

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