|
|
ibi Patterns .NET API
|
Generic interface for reading records. More...
Public Member Functions |
|
| bool | hasNext () |
| Returns true if the source has more records. |
|
| NetricsBaseRecord | getNext () |
| Returns the next record. |
|
| void | reset () |
| Reset the source to the first record. |
|
Detailed Description
Generic interface for reading records.
This interface defines how sets of records are passed in the API. When a constructor or method needs a set of records it expects an object that implements this interface. By creating a class that implements this interface the user can feed records from any source directly into the API. The API can then stream these records into the engine.
The .NET interface comes with two predefined implementations of the NetricsTableRecSrc interface: NetricsArrayRecSrc is a simple array of records, NetricsCSVRecSrc reads records from a standard format CSV file.
- See also
- NetricsArrayRecSrc, NetricsCSVRecSrc
Member Function Documentation
◆ getNext()
| NetricsBaseRecord NetricsServerInterface.NetricsBaseRecSrc.getNext | ( | ) |
Returns the next record.
This should throw an exception when there are no more records.
- Returns
- the next record
Implemented in NetricsServerInterface.NetricsArrayRecSrc, NetricsServerInterface.NetricsCompoundReader, NetricsServerInterface.NetricsCompoundRecSrc, NetricsServerInterface.NetricsCSVRecSrc, NetricsServerInterface.NetricsTableRecSrc, NetricsServerInterface.NetricsTableCursorCompoundRecSrc, NetricsServerInterface.NetricsTableCursorRecSrc, and NetricsServerInterface.NetricsTextFileRecSrc.
◆ reset()
| void NetricsServerInterface.NetricsBaseRecSrc.reset | ( | ) |
Reset the source to the first record.
Not all record sources may support this operation.
Implemented in NetricsServerInterface.NetricsArrayRecSrc, NetricsServerInterface.NetricsCompoundReader, NetricsServerInterface.NetricsCompoundRecSrc, NetricsServerInterface.NetricsCSVRecSrc, NetricsServerInterface.NetricsTableRecSrc, NetricsServerInterface.NetricsTableCursorCompoundRecSrc, NetricsServerInterface.NetricsTableCursorRecSrc, and NetricsServerInterface.NetricsTextFileRecSrc.