Package io.vertigo.database.timeseries
Record Class Measure
java.lang.Object
java.lang.Record
io.vertigo.database.timeseries.Measure
public record Measure(String measurement, Instant instant, Map<String,Object> fields, Map<String,String> tags)
extends Record
Measure
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic MeasureBuilderCreates a new Point Build build to create a new Point in a fluent manner.final booleanIndicates whether some other object is "equal to" this one.fields()Returns the value of thefieldsrecord component.final inthashCode()Returns a hash code value for this object.instant()Returns the value of theinstantrecord component.Returns the value of themeasurementrecord component.tags()Returns the value of thetagsrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Measure
public Measure(String measurement, Instant instant, Map<String, Object> fields, Map<String, String> tags) Creates an instance of aMeasurerecord class.- Parameters:
measurement- the value for themeasurementrecord componentinstant- the value for theinstantrecord componentfields- the value for thefieldsrecord componenttags- the value for thetagsrecord component
-
-
Method Details
-
builder
Creates a new Point Build build to create a new Point in a fluent manner.- Parameters:
measurement- the name of the measurement.- Returns:
- the Builder to be able to add further Builder calls.
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
measurement
Returns the value of themeasurementrecord component.- Returns:
- the value of the
measurementrecord component
-
instant
Returns the value of theinstantrecord component.- Returns:
- the value of the
instantrecord component
-
fields
Returns the value of thefieldsrecord component.- Returns:
- the value of the
fieldsrecord component
-
tags
Returns the value of thetagsrecord component.- Returns:
- the value of the
tagsrecord component
-