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

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

Constructor & Destructor Documentation

◆ __init__()

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

Definition at line 162 of file dbsqlite.py.

162  def __init__(self, conn, stmt, indices):
163  c = conn.cursor()
164  c.execute(stmt)
165 
166  self.iter = iter(c)
167  self.getter = itemgetter(*indices)
168 

Member Function Documentation

◆ __iter__()

def python.dbsqlite.SQLHashValueIterator.__iter__ (   self)

Definition at line 169 of file dbsqlite.py.

169  def __iter__(self):
170  return self
171 

◆ __next__()

def python.dbsqlite.SQLHashValueIterator.__next__ (   self)

Definition at line 175 of file dbsqlite.py.

175  def __next__(self): #py3
176  o = self.getter(self.iter.__next__())
177  return pickle.loads(o)
178 

◆ next()

def python.dbsqlite.SQLHashValueIterator.next (   self)

Definition at line 172 of file dbsqlite.py.

172  def next(self): #py2
173  o = self.getter(self.iter.next())
174  return pickle.loads(o)

Member Data Documentation

◆ getter

python.dbsqlite.SQLHashValueIterator.getter

Definition at line 167 of file dbsqlite.py.

◆ iter

python.dbsqlite.SQLHashValueIterator.iter

Definition at line 166 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