Previous topic

2.1.4.1.1. logrecorditerator.LogRecordIterator

Next topic

2.1.5. mnclient

This Page

2.1.4.1.1. logrecorditerator.LogRecordIterator

class logrecorditerator.LogRecordIterator(client, fromDate=None)

Implements an iterator that iterates over the entire set of LogRecords for a DataONE node. Data is retrieved from the target only when required.

__init__(client, fromDate=None)

Initializes the iterator.

TODO: Extend this with date range and other restrictions
Parameters:
  • client (DataOneClient) – The client instance for retrieving stuff.
  • start (integer) – The starting index value

Methods

__init__(client[, fromDate]) Initializes the iterator.
next() Implements the next() method for the iterator.