Record Class LegacyAggregateAdapter
java.lang.Object
java.lang.Record
com.inductiveautomation.historian.common.model.LegacyAggregateAdapter
- Record Components:
aggregate- the aggregate being adapted
- All Implemented Interfaces:
AggregationType
Adapts a tag history
Aggregate to AggregationType, so it can be used where an
AggregationType is required.-
Nested Class Summary
Nested classes/interfaces inherited from interface AggregationType
AggregationType.EmptyWindowBound -
Constructor Summary
ConstructorsConstructorDescriptionLegacyAggregateAdapter(Aggregate aggregate) Creates an instance of aLegacyAggregateAdapterrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the interface default widened by the matching standard aggregate's set, soCount,LastValue,PctGoodandPctBadtake every type.Returns the value of theaggregaterecord component.dataType()Always empty, meaning undeclared: tag history aggregation modes carry no type information.Returns the aggregate's localized description.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.id()Derives the id from the aggregate's name in lower snake case:"MinMax"becomes"min_max".name()Returns the aggregate's name.static LegacyAggregateAdapterAdapts the given aggregate.final StringtoString()Returns a string representation of this record class.tryId()Returnsid(), or empty when the name is absent or outsideAggregateId.Core's slug grammar, as a custom provider-defined aggregate's may be.Methods inherited from interface AggregationType
applicableFillModes, applicableFills, approximate, counter, emptyWindowBound, entry, interpolations, interpolations, legacyFills, offeredInputTypes, oneSampleIsSample, parameterSchema, resolveInterpolation, takesConstant, takesWindowFill, usesBounds
-
Constructor Details
-
LegacyAggregateAdapter
-
-
Method Details
-
of
Adapts the given aggregate.- Parameters:
legacy- the aggregate to adapt.- Returns:
- the adapter.
-
id
Derives the id from the aggregate's name in lower snake case:"MinMax"becomes"min_max".- Specified by:
idin interfaceAggregationType- Returns:
- the id.
-
tryId
Returnsid(), or empty when the name is absent or outsideAggregateId.Core's slug grammar, as a custom provider-defined aggregate's may be. -
name
Returns the aggregate's name.- Specified by:
namein interfaceAggregationType- Returns:
- the name.
-
description
Returns the aggregate's localized description.- Specified by:
descriptionin interfaceAggregationType- Returns:
- the description.
-
acceptedInputTypes
Returns the interface default widened by the matching standard aggregate's set, soCount,LastValue,PctGoodandPctBadtake every type.- Specified by:
acceptedInputTypesin interfaceAggregationType- Returns:
- the accepted input types.
-
dataType
Always empty, meaning undeclared: tag history aggregation modes carry no type information. Do not read it as the resolved tag type:Countyields aLong, andVariance,StdDev,PctGoodandPctBadyield aDouble, whatever the tag's type.- Specified by:
dataTypein interfaceAggregationType- Returns:
- an empty optional
-
toString
-
hashCode
-
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). -
aggregate
-