Record Class WindowAssigner.Raw
java.lang.Object
java.lang.Record
com.inductiveautomation.historian.gateway.api.query.pipeline.WindowAssigner.Raw
- All Implemented Interfaces:
WindowAssigner
- Enclosing interface:
WindowAssigner
Every event is its own window; for raw queries.
-
Nested Class Summary
Nested classes/interfaces inherited from interface WindowAssigner
WindowAssigner.Natural, WindowAssigner.Raw, WindowAssigner.Tumbling -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlongassignWindow(long timestamp) Assigns a timestamp to the start of its window.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.longReturns the window size in milliseconds;0means one window per event and onlyWindowAssigner.Rawreturns it.
-
Constructor Details
-
Raw
public Raw()Creates an instance of aRawrecord class.
-
-
Method Details
-
assignWindow
public long assignWindow(long timestamp) Description copied from interface:WindowAssignerAssigns a timestamp to the start of its window.- Specified by:
assignWindowin interfaceWindowAssigner- Parameters:
timestamp- the event timestamp in epoch milliseconds- Returns:
- the window start in epoch milliseconds;
WindowAssigner.Rawreturns the input
-
windowSize
public long windowSize()Description copied from interface:WindowAssignerReturns the window size in milliseconds;0means one window per event and onlyWindowAssigner.Rawreturns it.- Specified by:
windowSizein interfaceWindowAssigner
-
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.
-