Module org.elasticsearch.server
Package org.elasticsearch.index.reindex
Record Class ResumeInfo.PitWorkerResumeInfo
java.lang.Object
java.lang.Record
org.elasticsearch.index.reindex.ResumeInfo.PitWorkerResumeInfo
- All Implemented Interfaces:
NamedWriteable,Writeable,ResumeInfo.WorkerResumeInfo
- Enclosing class:
ResumeInfo
public static record ResumeInfo.PitWorkerResumeInfo(BytesReference pitId, Object[] searchAfterValues, long startTimeEpochMillis, BulkByScrollTask.Status status, Version remoteVersion)
extends Record
implements ResumeInfo.WorkerResumeInfo
Resume information for a PIT-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
ConstructorsConstructorDescriptionPitWorkerResumeInfo(BytesReference pitId, Object[] searchAfterValues, long startTimeEpochMillis, BulkByScrollTask.Status status, Version remoteVersion) Creates an instance of aPitWorkerResumeInforecord 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.pitId()Returns the value of thepitIdrecord component.Returns the value of theremoteVersionrecord component.Object[]Returns the value of thesearchAfterValuesrecord 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
-
PitWorkerResumeInfo
public PitWorkerResumeInfo(BytesReference pitId, Object[] searchAfterValues, long startTimeEpochMillis, BulkByScrollTask.Status status, @Nullable Version remoteVersion) Creates an instance of aPitWorkerResumeInforecord class.- Parameters:
pitId- the value for thepitIdrecord componentsearchAfterValues- the value for thesearchAfterValuesrecord componentstartTimeEpochMillis- the value for thestartTimeEpochMillisrecord componentstatus- the value for thestatusrecord componentremoteVersion- the value for theremoteVersionrecord component
-
PitWorkerResumeInfo
- 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 '=='. -
pitId
Returns the value of thepitIdrecord component.- Returns:
- the value of the
pitIdrecord component
-
searchAfterValues
Returns the value of thesearchAfterValuesrecord component.- Returns:
- the value of the
searchAfterValuesrecord 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
-