- java.lang.Object
-
- com.pervasive.datarush.tokens.InputModificationCountProvider
-
- All Implemented Interfaces:
ModificationCountProvider
public final class InputModificationCountProvider extends Object implements ModificationCountProvider
A change sequence derived from an input port. The sequence number advances as the input port is advanced usingRecordInput.stepNext()
Use this implementation with classes wrapping a record value where the value is aRecordInput
.
-
-
Constructor Summary
Constructors Constructor Description InputModificationCountProvider(RecordInput input)
Creates a change sequence based on the specified input port.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description long
getModificationCount()
Gets the current change number.
-
-
-
Constructor Detail
-
InputModificationCountProvider
public InputModificationCountProvider(RecordInput input)
Creates a change sequence based on the specified input port. As the port advances, the sequence number changes.- Parameters:
input
- the port used as the basis of the change sequence
-
-
Method Detail
-
getModificationCount
public long getModificationCount()
Description copied from interface:ModificationCountProvider
Gets the current change number. This value is monotonically increasing; a change in value indicates a change to the data structure associated with the provider.- Specified by:
getModificationCount
in interfaceModificationCountProvider
- Returns:
- the current sequence number
-
-