Module org.elasticsearch.server
Record Class GetDataStreamAction.Response.TimeSeries
java.lang.Object
java.lang.Record
org.elasticsearch.action.datastreams.GetDataStreamAction.Response.TimeSeries
- All Implemented Interfaces:
Writeable
- Enclosing class:
- GetDataStreamAction.Response
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V>
-
Constructor Summary
ConstructorDescriptionTimeSeries
(List<Tuple<Instant, Instant>> temporalRanges) Creates an instance of aTimeSeries
record class. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Indicates whether some other object is "equal to" this one.int
hashCode()
Returns a hash code value for this object.Returns the value of thetemporalRanges
record component.final String
toString()
Returns a string representation of this record class.void
writeTo
(StreamOutput out) Write this into the StreamOutput.
-
Constructor Details
-
TimeSeries
Creates an instance of aTimeSeries
record class.- Parameters:
temporalRanges
- the value for thetemporalRanges
record component
-
-
Method Details
-
writeTo
Description copied from interface:Writeable
Write this into the StreamOutput.- Specified by:
writeTo
in interfaceWriteable
- Throws:
IOException
-
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. All components in this record class are compared withObjects::equals(Object,Object)
. -
hashCode
public int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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. -
temporalRanges
Returns the value of thetemporalRanges
record component.- Returns:
- the value of the
temporalRanges
record component
-