Package intermine :: Module webservice :: Class FlatFileIterator
[hide private]
[frames] | no frames]

Class FlatFileIterator

source code

object --+
         |
        FlatFileIterator

An iterator for handling results returned as a flat file (TSV/CSV).

This iterator can be used as the sub iterator in a ResultIterator

Instance Methods [hide private]
 
__init__(self, connection, parser) source code
 
__iter__(self) source code
 
next(self)
Return a parsed line of data
source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, connection, parser)
(Constructor)

source code 

Constructor

Parameters:
  • connection (socket.socket) - The source of data
  • parser (Parser) - a handler for each row of data
Overrides: object.__init__