Record Class AggregateFunction.Cell
java.lang.Object
java.lang.Record
com.inductiveautomation.historian.gateway.api.query.pipeline.AggregateFunction.Cell
- Enclosing interface:
AggregateFunction<ACC>
public static record AggregateFunction.Cell(@Nullable Object value, @Nullable QualityCode quality, boolean fromBounds, boolean raw)
extends Record
One value of a finished window. A
null quality leaves the stamp to the pipeline; a
stated one is the fold's own. fromBounds marks a value answered from the samples around
the window rather than inside it (a null when they give none): its stated quality is the cell's
stamp as it stands, and a Double on an integer column is narrowed into the column type.
raw marks the stored sample at the window start, taken as the answer.-
Constructor Summary
ConstructorsConstructorDescriptionCell(@Nullable Object value, @Nullable QualityCode quality, boolean fromBounds) A cell that is not the stored sample at the window start.Cell(@Nullable Object value, @Nullable QualityCode quality, boolean fromBounds, boolean raw) Creates an instance of aCellrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.booleanReturns the value of thefromBoundsrecord component.final inthashCode()Returns a hash code value for this object.static List<AggregateFunction.Cell> A value fold's answer: one cell the pipeline stamps, or no cell fornull.@Nullable QualityCodequality()Returns the value of thequalityrecord component.booleanraw()Returns the value of therawrecord component.final StringtoString()Returns a string representation of this record class.@Nullable Objectvalue()Returns the value of thevaluerecord component.
-
Constructor Details
-
Cell
A cell that is not the stored sample at the window start. -
Cell
Creates an instance of aCellrecord class.- Parameters:
value- the value for thevaluerecord componentquality- the value for thequalityrecord componentfromBounds- the value for thefromBoundsrecord componentraw- the value for therawrecord component
-
-
Method Details
-
of
A value fold's answer: one cell the pipeline stamps, or no cell fornull. -
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. -
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
-
fromBounds
public boolean fromBounds()Returns the value of thefromBoundsrecord component.- Returns:
- the value of the
fromBoundsrecord component
-
raw
public boolean raw()Returns the value of therawrecord component.- Returns:
- the value of the
rawrecord component
-