Record Class AggregateFunction.PriorSample
java.lang.Object
java.lang.Record
com.inductiveautomation.historian.gateway.api.query.pipeline.AggregateFunction.PriorSample
- Record Components:
tsMs- the sample's timestamp in epoch milliseconds, on the same clock asAggregateFunction.Window.
- Enclosing interface:
AggregateFunction<ACC>
public static record AggregateFunction.PriorSample(long tsMs, @Nullable Object value, @Nullable QualityCode quality)
extends Record
A sample outside a window that bounds it: the latest sample strictly before the window start (a
bounding seed before the query range or the last sample of an earlier window), or the first
sample at or after its end.
-
Constructor Summary
ConstructorsConstructorDescriptionPriorSample(long tsMs, @Nullable Object value, @Nullable QualityCode quality) Creates an instance of aPriorSamplerecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.@Nullable QualityCodequality()Returns the value of thequalityrecord component.final StringtoString()Returns a string representation of this record class.longtsMs()Returns the value of thetsMsrecord component.@Nullable Objectvalue()Returns the value of thevaluerecord component.
-
Constructor Details
-
PriorSample
Creates an instance of aPriorSamplerecord class.- Parameters:
tsMs- the value for thetsMsrecord componentvalue- the value for thevaluerecord componentquality- the value for thequalityrecord component
-
-
Method Details
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
tsMs
-
value
Returns the value of thevaluerecord component.- Returns:
- the value of the
valuerecord component
-
quality
Returns the value of thequalityrecord component.- Returns:
- the value of the
qualityrecord component
-