Package com.tnsai.state
Record Class Checkpointer.CheckpointTuple
java.lang.Object
java.lang.Record
com.tnsai.state.Checkpointer.CheckpointTuple
- Enclosing interface:
Checkpointer
public static record Checkpointer.CheckpointTuple(String checkpointId, Map<String,Object> state, Map<String,Object> metadata, List<Checkpointer.Write> pendingWrites, long timestamp)
extends Record
Checkpoint tuple container.
-
Constructor Summary
ConstructorsConstructorDescriptionCheckpointTuple(String checkpointId, Map<String, Object> state, Map<String, Object> metadata, List<Checkpointer.Write> pendingWrites, long timestamp) Creates an instance of aCheckpointTuplerecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecheckpointIdrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.metadata()Returns the value of themetadatarecord component.Returns the value of thependingWritesrecord component.state()Returns the value of thestaterecord component.longReturns the value of thetimestamprecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
CheckpointTuple
public CheckpointTuple(String checkpointId, Map<String, Object> state, Map<String, Object> metadata, List<Checkpointer.Write> pendingWrites, long timestamp) Creates an instance of aCheckpointTuplerecord class.- Parameters:
checkpointId- the value for thecheckpointIdrecord componentstate- the value for thestaterecord componentmetadata- the value for themetadatarecord componentpendingWrites- the value for thependingWritesrecord componenttimestamp- the value for thetimestamprecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
checkpointId
Returns the value of thecheckpointIdrecord component.- Returns:
- the value of the
checkpointIdrecord component
-
state
Returns the value of thestaterecord component.- Returns:
- the value of the
staterecord component
-
metadata
Returns the value of themetadatarecord component.- Returns:
- the value of the
metadatarecord component
-
pendingWrites
Returns the value of thependingWritesrecord component.- Returns:
- the value of the
pendingWritesrecord component
-
timestamp
public long timestamp()Returns the value of thetimestamprecord component.- Returns:
- the value of the
timestamprecord component
-