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 177 of file dbsqlite.py.

Constructor & Destructor Documentation

◆ __init__()

def 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__()

def python.dbsqlite.SQLHashItemIterator.__iter__ (   self)

Definition at line 185 of file dbsqlite.py.

185  def __iter__(self):
186  return self
187 

◆ __next__()

def 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()

def 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

Definition at line 183 of file dbsqlite.py.

◆ iter

python.dbsqlite.SQLHashItemIterator.iter

Definition at line 182 of file dbsqlite.py.


The documentation for this class was generated from the following file:
createLinkingScheme.iter
iter
Definition: createLinkingScheme.py:62
python.Bindings.__iter__
__iter__
Definition: Control/AthenaPython/python/Bindings.py:794
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