Python Component API: class ValueIterator

The following methods are available for Python class ValueIterator.

This page discusses:

Description

This is a base class to make array values iterable. It is part of the pilotpython module, which is available in the Python (on Server) component.

class ValueIterator(builtins.object)

ValueIterator.__init__()
Description Initializes the instance.
Input parameters None
Return value None
ValueIterator.__iter__()
ValueIterator.__next__()
ValueIterator.getItem(index)
Description Returns the item at the specified index of the iterator.
Input parameters param index: Index of item to retrieve

type index: int (>=0)

Return value None
ValueIterator.getSize()
Description Returns the size of the iterable object.
Input parameters None
Return value returns: Size of object (i.e., how many elements it contains)

rtype: int (>=0)

ValueIterator.reset()

Data descriptors defined here

ValueIterator.__dict__
Description dictionary for instance variables (if defined)
ValueIterator.__weakref__
Description list of weak references to the object (if defined)

Data

ALL_PORTS = 3

DAY = 3

DEFAULT_INPUT_PORT = 1

DONE_PROCESSING_DATA = 0

FAIL_PORT = 2

HOUR = 4

MILLISECOND = 7

MINUTE = 5

MONTH = 2

NO_PORT = 0

PASS_PORT = 1

READY_FOR_INPUT_DATA = 1

READY_FOR_INPUT_OR_NEW_DATA = 4

READY_FOR_INPUT_THEN_NEW_DATA = 3

READY_FOR_NEW_DATA = 2

SECOND = 6

SORT_FILE_LIST = 1

THROW_ON_MISSING_FILE = 2

USE_RELATIVE_PATH = 4

YEAR = 1