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
ConstructorsConstructorDescriptionTimeSeries(List<Tuple<Instant, Instant>> temporalRanges) Creates an instance of aTimeSeriesrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanIndicates whether some other object is "equal to" this one.inthashCode()Returns a hash code value for this object.Returns the value of thetemporalRangesrecord component.final StringtoString()Returns a string representation of this record class.voidwriteTo(StreamOutput out) Write this into the StreamOutput.
-
Constructor Details
-
TimeSeries
Creates an instance of aTimeSeriesrecord class.- Parameters:
temporalRanges- the value for thetemporalRangesrecord component
-
-
Method Details
-
writeTo
Description copied from interface:WriteableWrite this into the StreamOutput.- Specified by:
writeToin 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 thetemporalRangesrecord component.- Returns:
- the value of the
temporalRangesrecord component
-