Record Class AggregatedQueryKey
java.lang.Object
java.lang.Record
com.inductiveautomation.historian.common.model.options.AggregatedQueryKey
- Record Components:
source- TheQualifiedPathrepresenting the source of the data point.aggregationType- TheAggregationTypeused for the query.fillMode- TheFillModespecifying how missing data should be handled.
- All Implemented Interfaces:
DataPointQueryKey,QueryKey<DataPointType>
public record AggregatedQueryKey(QualifiedPath source, AggregationType aggregationType, FillMode fillMode)
extends Record
implements DataPointQueryKey
Represents a key for querying aggregated data points.
This record encapsulates the source, aggregation type, and fill mode for an aggregated query.
It implements the DataPointQueryKey interface and provides methods to retrieve the
point type and create instances of the key with default or specified fill modes.
-
Constructor Summary
ConstructorsConstructorDescriptionAggregatedQueryKey(QualifiedPath source, AggregationType aggregationType, FillMode fillMode) Creates an instance of aAggregatedQueryKeyrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theaggregationTyperecord component.final booleanIndicates whether some other object is "equal to" this one.fillMode()Returns the value of thefillModerecord component.final inthashCode()Returns a hash code value for this object.static AggregatedQueryKeyof(QualifiedPath source, AggregationType aggregationType) Creates a newAggregatedQueryKeywith the specified source and aggregation type.static AggregatedQueryKeyof(QualifiedPath source, AggregationType aggregationType, FillMode fillMode) Creates a newAggregatedQueryKeywith the specified source, aggregation type, and fill mode.Retrieves the type of the data point.source()Returns the value of thesourcerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
AggregatedQueryKey
Creates an instance of aAggregatedQueryKeyrecord class.- Parameters:
source- the value for thesourcerecord componentaggregationType- the value for theaggregationTyperecord componentfillMode- the value for thefillModerecord component
-
-
Method Details
-
pointType
Retrieves the type of the data point.- Specified by:
pointTypein interfaceQueryKey<DataPointType>- Returns:
- The
DataPointType, which is alwaysStandardDataPointType.AGGREGATED.
-
of
Creates a newAggregatedQueryKeywith the specified source and aggregation type.The fill mode is set to
FillMode.DERIVEDby default.- Parameters:
source- TheQualifiedPathrepresenting the source of the data point.aggregationType- TheAggregationTypeused for the query.- Returns:
- A new
AggregatedQueryKeyinstance.
-
of
public static AggregatedQueryKey of(QualifiedPath source, AggregationType aggregationType, FillMode fillMode) Creates a newAggregatedQueryKeywith the specified source, aggregation type, and fill mode.- Parameters:
source- TheQualifiedPathrepresenting the source of the data point.aggregationType- TheAggregationTypeused for the query.fillMode- TheFillModespecifying how missing data should be handled.- Returns:
- A new
AggregatedQueryKeyinstance.
-
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). -
source
Returns the value of thesourcerecord component.- Specified by:
sourcein interfaceDataPointQueryKey- Returns:
- the value of the
sourcerecord component
-
aggregationType
Returns the value of theaggregationTyperecord component.- Returns:
- the value of the
aggregationTyperecord component
-
fillMode
Returns the value of thefillModerecord component.- Returns:
- the value of the
fillModerecord component
-