|
ibi Patterns .NET API
|
Generic interface for reading record operations. More...
Public Member Functions | |
| bool | hasNext () |
| True if getNext will return a record operation. | |
| NetricsRecOp | getNext () |
| Returns the next record operation. | |
| NetricsRecOp | getCur () |
| Returns the current record operation. | |
| bool | canReset () |
| Returns true if this instance supports the reset method. | |
| void | reset () |
| Reset the scan of records back to the beginning. | |
Generic interface for reading record operations.
This interface defines how record operations are passed into the API. By creating a class that implements this interface record operations can be streamed from any source through the ibi™ Patterns - Search .NET API to the ibi™ Patterns - Search server. For example a DBMS table could be mirrored to an ibi™ Patterns - Search server by creating an implementation of this interface that scanned a DBMS transaction log to convert record operations recorded there into NetricsRecOp objects returned by this interface.
The .NET API comes with one predefined implementations of the NetricsRecOpSrc interface: NetricsArrayRecOpSrc is a simple array of record operations.
| bool NetricsServerInterface.NetricsRecOpSrc.canReset | ( | ) |
Returns true if this instance supports the reset method.
Implemented in NetricsServerInterface.NetricsArrayRecOpSrc.
| NetricsRecOp NetricsServerInterface.NetricsRecOpSrc.getCur | ( | ) |
Returns the current record operation.
This returns the last record operation fetched. If no record operation has been fetched, or getNext() was called at the end of file, this returns null.
Implemented in NetricsServerInterface.NetricsArrayRecOpSrc.
| NetricsRecOp NetricsServerInterface.NetricsRecOpSrc.getNext | ( | ) |
Returns the next record operation.
Implemented in NetricsServerInterface.NetricsArrayRecOpSrc.
| bool NetricsServerInterface.NetricsRecOpSrc.hasNext | ( | ) |
True if getNext will return a record operation.
Implemented in NetricsServerInterface.NetricsArrayRecOpSrc.
| void NetricsServerInterface.NetricsRecOpSrc.reset | ( | ) |
Reset the scan of records back to the beginning.
This resets the scan of records back to the initial state. After this call there is no current record and getNext will retrieve the first record. Support for this method is optional. If it is not supported the canReset method should return false and a call to this method should throw a NotSupportedException.
Implemented in NetricsServerInterface.NetricsArrayRecOpSrc.