Package io.vertigo.database.timeseries
Record Class DataFilter
java.lang.Object
java.lang.Record
io.vertigo.database.timeseries.DataFilter
- All Implemented Interfaces:
Serializable
public record DataFilter(String measurement, Map<String,String> filters)
extends Record
implements Serializable
- Author:
- mlaroche
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionDataFilter(String measurement, Map<String, String> filters) Creates an instance of aDataFilterrecord class. -
Method Summary
Modifier and TypeMethodDescriptionstatic DataFilterBuilderfinal booleanIndicates whether some other object is "equal to" this one.filters()Returns the value of thefiltersrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of themeasurementrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
DataFilter
Creates an instance of aDataFilterrecord class.- Parameters:
measurement- the value for themeasurementrecord componentfilters- the value for thefiltersrecord component
-
-
Method Details
-
builder
-
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
-
filters
Returns the value of thefiltersrecord component.- Returns:
- the value of the
filtersrecord component
-