Record Class PartitionView
java.lang.Object
java.lang.Record
io.github.jchejarla.springbatch.clustering.query.PartitionView
- Record Components:
stepExecutionId- the partition's Spring Batch step execution idpartitionKey- the partition keyassignedNode- the node currently assigned to execute itstatus- the partition status (PENDING / CLAIMED / COMPLETED / FAILED)
public record PartitionView(long stepExecutionId, String partitionKey, String assignedNode, String status)
extends Record
Read-only view of a single partition's placement and status within a job.
-
Constructor Summary
ConstructorsConstructorDescriptionPartitionView(long stepExecutionId, String partitionKey, String assignedNode, String status) Creates an instance of aPartitionViewrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theassignedNoderecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of thepartitionKeyrecord component.status()Returns the value of thestatusrecord component.longReturns the value of thestepExecutionIdrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
PartitionView
Creates an instance of aPartitionViewrecord class.- Parameters:
stepExecutionId- the value for thestepExecutionIdrecord componentpartitionKey- the value for thepartitionKeyrecord componentassignedNode- the value for theassignedNoderecord componentstatus- the value for thestatusrecord 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 '=='. -
stepExecutionId
public long stepExecutionId()Returns the value of thestepExecutionIdrecord component.- Returns:
- the value of the
stepExecutionIdrecord component
-
partitionKey
Returns the value of thepartitionKeyrecord component.- Returns:
- the value of the
partitionKeyrecord component
-
assignedNode
Returns the value of theassignedNoderecord component.- Returns:
- the value of the
assignedNoderecord component
-
status
Returns the value of thestatusrecord component.- Returns:
- the value of the
statusrecord component
-