/search.css" rel="stylesheet" type="text/css"/> /search.js">
| Classes | Job Modules | Data Objects | Services | Algorithms | Tools | Packages | Directories | Tracs |

In This Package:

Public Member Functions
vmapping::VMapping Class Reference

List of all members.

Public Member Functions

def __init__
def expect

Detailed Description

Definition at line 5 of file vmapping.py.


Constructor & Destructor Documentation

def vmapping::VMapping::__init__ (   self,
  table,
  from_seqno,
  sitemask_map,
  subsite_map 
)

Definition at line 6 of file vmapping.py.

00007                                                                      :
00008         assert len(sitemask_map) == 1 , sitemask_map 
00009         assert len(subsite_map) == 1 , subsite_map 
00010         src_sitemask, tgt_sitemask = sitemask_map.items()[0]
00011         src_subsite,  tgt_subsite  = subsite_map.items()[0]
00012         dict.__init__(self)
00013         self['table'] = table
00014         self['from_seqno'] = from_seqno
00015         self['src_sitemask'] = src_sitemask
00016         self['src_subsite'] = src_subsite
00017         self['tgt_sitemask'] = tgt_sitemask
00018         self['tgt_subsite'] = tgt_subsite
00019         self['sqlcontext'] = " SITEMASK=%(src_sitemask)s and SUBSITE=%(src_subsite)s and SEQNO >= %(from_seqno)s " % self


Member Function Documentation

def vmapping::VMapping::expect (   self,
  db,
  checkpoint = None 
)

Definition at line 20 of file vmapping.py.

00021                                          :
00022         sql = "select count(*) as N from %(table)sVld where %(sqlcontext)s" % self
00023         lod = db(sql)
00024         assert len(lod) == 1, lod
00025         self['expect'] = int(lod[0]['N'])
00026         if checkpoint:
00027             Pickler.checkpoint(dict(self), checkpoint)
00028         return self['expect']


The documentation for this class was generated from the following file:
| Classes | Job Modules | Data Objects | Services | Algorithms | Tools | Packages | Directories | Tracs |

Generated on Fri May 16 2014 09:57:25 for DybDbi by doxygen 1.7.4