ATLAS Offline Software
Loading...
Searching...
No Matches
python.dbsqlite.SQLHashItemIterator Class Reference
Inheritance diagram for python.dbsqlite.SQLHashItemIterator:
Collaboration diagram for python.dbsqlite.SQLHashItemIterator:

Public Types

typedef HLT::TypeInformation::for_each_type_c< typenameEDMLIST::map, my_functor, my_result<>, my_arg< HLT::TypeInformation::get_cont, CONTAINER > >::type result

Public Member Functions

 __init__ (self, conn, stmt, indices)
 __iter__ (self)
 next (self)
 __next__ (self)

Public Attributes

 iter = iter(c)
 getter = itemgetter(*indices)

Detailed Description

Definition at line 177 of file dbsqlite.py.

Member Typedef Documentation

◆ result

Definition at line 90 of file EDM_MasterSearch.h.

Constructor & Destructor Documentation

◆ __init__()

python.dbsqlite.SQLHashItemIterator.__init__ ( self,
conn,
stmt,
indices )

Definition at line 178 of file dbsqlite.py.

178 def __init__(self, conn, stmt, indices):
179 c = conn.cursor()
180 c.execute(stmt)
181
182 self.iter = iter(c)
183 self.getter = itemgetter(*indices)
184

Member Function Documentation

◆ __iter__()

python.dbsqlite.SQLHashItemIterator.__iter__ ( self)

Definition at line 185 of file dbsqlite.py.

185 def __iter__(self):
186 return self
187

◆ __next__()

python.dbsqlite.SQLHashItemIterator.__next__ ( self)

Definition at line 193 of file dbsqlite.py.

193 def __next__(self): #py3
194 o = self.getter(self.iter.__next__())
195 k = o[0]
196 v = pickle.loads(o[1])
197 return (k,v)
198

◆ next()

python.dbsqlite.SQLHashItemIterator.next ( self)

Definition at line 188 of file dbsqlite.py.

188 def next(self): #py2
189 o = self.getter(self.iter.next())
190 k = o[0]
191 v = pickle.loads(o[1])
192 return (k,v)

Member Data Documentation

◆ getter

python.dbsqlite.SQLHashItemIterator.getter = itemgetter(*indices)

Definition at line 183 of file dbsqlite.py.

◆ iter

python.dbsqlite.SQLHashItemIterator.iter = iter(c)

Definition at line 182 of file dbsqlite.py.


The documentation for this class was generated from the following file: