Module org.elasticsearch.server
Package org.elasticsearch.index.reindex
Record Class ResumeInfo.ScrollWorkerResumeInfo
java.lang.Object
java.lang.Record
org.elasticsearch.index.reindex.ResumeInfo.ScrollWorkerResumeInfo
- All Implemented Interfaces:
NamedWriteable,Writeable,ResumeInfo.WorkerResumeInfo
- Enclosing class:
ResumeInfo
public static record ResumeInfo.ScrollWorkerResumeInfo(String scrollId, long startTimeEpochMillis, BulkByScrollTask.Status status, Version remoteVersion)
extends Record
implements ResumeInfo.WorkerResumeInfo
Resume information for a scroll-based BulkByScrollTask worker.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V> -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionScrollWorkerResumeInfo(String scrollId, long startTimeEpochMillis, BulkByScrollTask.Status status, Version remoteVersion) Creates an instance of aScrollWorkerResumeInforecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.Returns the name of the writeable objectfinal inthashCode()Returns a hash code value for this object.Returns the value of theremoteVersionrecord component.scrollId()Returns the value of thescrollIdrecord component.longReturns the value of thestartTimeEpochMillisrecord component.status()Returns the value of thestatusrecord component.final StringtoString()Returns a string representation of this record class.voidwriteTo(StreamOutput out) Write this into the StreamOutput.
-
Field Details
-
NAME
- See Also:
-
-
Constructor Details
-
ScrollWorkerResumeInfo
public ScrollWorkerResumeInfo(String scrollId, long startTimeEpochMillis, BulkByScrollTask.Status status, @Nullable Version remoteVersion) Creates an instance of aScrollWorkerResumeInforecord class.- Parameters:
scrollId- the value for thescrollIdrecord componentstartTimeEpochMillis- the value for thestartTimeEpochMillisrecord componentstatus- the value for thestatusrecord componentremoteVersion- the value for theremoteVersionrecord component
-
ScrollWorkerResumeInfo
- Throws:
IOException
-
-
Method Details
-
writeTo
Description copied from interface:WriteableWrite this into the StreamOutput.- Specified by:
writeToin interfaceWriteable- Throws:
IOException
-
getWriteableName
Description copied from interface:NamedWriteableReturns the name of the writeable object- Specified by:
getWriteableNamein interfaceNamedWriteable
-
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 '=='. -
scrollId
Returns the value of thescrollIdrecord component.- Returns:
- the value of the
scrollIdrecord component
-
startTimeEpochMillis
public long startTimeEpochMillis()Returns the value of thestartTimeEpochMillisrecord component.- Specified by:
startTimeEpochMillisin interfaceResumeInfo.WorkerResumeInfo- Returns:
- the value of the
startTimeEpochMillisrecord component
-
status
Returns the value of thestatusrecord component.- Specified by:
statusin interfaceResumeInfo.WorkerResumeInfo- Returns:
- the value of the
statusrecord component
-
remoteVersion
Returns the value of theremoteVersionrecord component.- Returns:
- the value of the
remoteVersionrecord component
-