Record Class AnnotationQueryKey
java.lang.Object
java.lang.Record
com.inductiveautomation.historian.common.model.options.AnnotationQueryKey
- Record Components:
identifier
- TheQualifiedPath
that uniquely identifies the annotation.
- All Implemented Interfaces:
ComplexQueryKey<QualifiedPath>
,QueryKey<ComplexPointType>
public record AnnotationQueryKey(QualifiedPath identifier)
extends Record
implements ComplexQueryKey<QualifiedPath>
Represents a query key for annotation data points.
This record encapsulates a QualifiedPath
identifier and implements
the ComplexQueryKey
interface for querying annotation data points.
-
Constructor Summary
ConstructorsConstructorDescriptionAnnotationQueryKey
(QualifiedPath identifier) Creates an instance of aAnnotationQueryKey
record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.Returns the value of theidentifier
record component.Retrieves the type of the complex data point.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
AnnotationQueryKey
Creates an instance of aAnnotationQueryKey
record class.- Parameters:
identifier
- the value for theidentifier
record component
-
-
Method Details
-
pointType
Retrieves the type of the complex data point.This implementation always returns
StandardComplexPointType.ANNOTATION
.- Specified by:
pointType
in interfaceQueryKey<ComplexPointType>
- Returns:
- The
ComplexPointType
representing the annotation type.
-
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)
. -
identifier
Returns the value of theidentifier
record component.- Specified by:
identifier
in interfaceComplexQueryKey<QualifiedPath>
- Returns:
- the value of the
identifier
record component
-