ATLAS Offline Software
Public Member Functions | Public Attributes | List of all members
python.dbsqlite.SQLHashItemIterator Class Reference
Inheritance diagram for python.dbsqlite.SQLHashItemIterator:
Collaboration diagram for python.dbsqlite.SQLHashItemIterator:

Public Member Functions

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

Public Attributes

 iter
 
 getter
 

Detailed Description

Definition at line 179 of file dbsqlite.py.

Constructor & Destructor Documentation

◆ __init__()

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

Definition at line 180 of file dbsqlite.py.

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

Member Function Documentation

◆ __iter__()

def python.dbsqlite.SQLHashItemIterator.__iter__ (   self)

Definition at line 187 of file dbsqlite.py.

187  def __iter__(self):
188  return self
189 

◆ __next__()

def python.dbsqlite.SQLHashItemIterator.__next__ (   self)

Definition at line 195 of file dbsqlite.py.

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

◆ next()

def python.dbsqlite.SQLHashItemIterator.next (   self)

Definition at line 190 of file dbsqlite.py.

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

Member Data Documentation

◆ getter

python.dbsqlite.SQLHashItemIterator.getter

Definition at line 185 of file dbsqlite.py.

◆ iter

python.dbsqlite.SQLHashItemIterator.iter

Definition at line 184 of file dbsqlite.py.


The documentation for this class was generated from the following file:
python.Bindings.__iter__
__iter__
Definition: Control/AthenaPython/python/Bindings.py:783
fillPileUpNoiseLumi.next
next
Definition: fillPileUpNoiseLumi.py:52
python.processes.powheg.ZZ.ZZ.__init__
def __init__(self, base_directory, **kwargs)
Constructor: all process options are set here.
Definition: ZZ.py:18