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

Constructor & Destructor Documentation

◆ __init__()

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

Definition at line 160 of file dbsqlite.py.

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

Member Function Documentation

◆ __iter__()

def python.dbsqlite.SQLHashValueIterator.__iter__ (   self)

Definition at line 167 of file dbsqlite.py.

167  def __iter__(self):
168  return self
169 

◆ __next__()

def python.dbsqlite.SQLHashValueIterator.__next__ (   self)

Definition at line 173 of file dbsqlite.py.

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

◆ next()

def python.dbsqlite.SQLHashValueIterator.next (   self)

Definition at line 170 of file dbsqlite.py.

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

Member Data Documentation

◆ getter

python.dbsqlite.SQLHashValueIterator.getter

Definition at line 165 of file dbsqlite.py.

◆ iter

python.dbsqlite.SQLHashValueIterator.iter

Definition at line 164 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
python.processes.powheg.ZZj_MiNNLO.ZZj_MiNNLO.__init__
def __init__(self, base_directory, **kwargs)
Constructor: all process options are set here.
Definition: ZZj_MiNNLO.py:18
fillPileUpNoiseLumi.next
next
Definition: fillPileUpNoiseLumi.py:52