Record Class AggregatedQueryKey
java.lang.Object
java.lang.Record
com.inductiveautomation.historian.common.model.options.AggregatedQueryKey
- Record Components:
source
- TheQualifiedPath
representing the source of the data point.aggregationType
- TheAggregationType
used for the query.fillMode
- TheFillMode
specifying 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 aAggregatedQueryKey
record class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theaggregationType
record component.final boolean
Indicates whether some other object is "equal to" this one.fillMode()
Returns the value of thefillMode
record component.final int
hashCode()
Returns a hash code value for this object.static AggregatedQueryKey
of
(QualifiedPath source, AggregationType aggregationType) Creates a newAggregatedQueryKey
with the specified source and aggregation type.static AggregatedQueryKey
of
(QualifiedPath source, AggregationType aggregationType, FillMode fillMode) Creates a newAggregatedQueryKey
with the specified source, aggregation type, and fill mode.Retrieves the type of the data point.source()
Returns the value of thesource
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
AggregatedQueryKey
Creates an instance of aAggregatedQueryKey
record class.- Parameters:
source
- the value for thesource
record componentaggregationType
- the value for theaggregationType
record componentfillMode
- the value for thefillMode
record component
-
-
Method Details
-
pointType
Retrieves the type of the data point.- Specified by:
pointType
in interfaceQueryKey<DataPointType>
- Returns:
- The
DataPointType
, which is alwaysStandardDataPointType.AGGREGATED
.
-
of
Creates a newAggregatedQueryKey
with the specified source and aggregation type.The fill mode is set to
FillMode.DERIVED
by default.- Parameters:
source
- TheQualifiedPath
representing the source of the data point.aggregationType
- TheAggregationType
used for the query.- Returns:
- A new
AggregatedQueryKey
instance.
-
of
public static AggregatedQueryKey of(QualifiedPath source, AggregationType aggregationType, FillMode fillMode) Creates a newAggregatedQueryKey
with the specified source, aggregation type, and fill mode.- Parameters:
source
- TheQualifiedPath
representing the source of the data point.aggregationType
- TheAggregationType
used for the query.fillMode
- TheFillMode
specifying how missing data should be handled.- Returns:
- A new
AggregatedQueryKey
instance.
-
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 thesource
record component.- Specified by:
source
in interfaceDataPointQueryKey
- Returns:
- the value of the
source
record component
-
aggregationType
Returns the value of theaggregationType
record component.- Returns:
- the value of the
aggregationType
record component
-
fillMode
Returns the value of thefillMode
record component.- Returns:
- the value of the
fillMode
record component
-