Package smile.plot.vega
Record Class WindowTransformField
java.lang.Object
java.lang.Record
smile.plot.vega.WindowTransformField
- Record Components:
op
- The window or aggregation operation to apply within a window (e.g., "rank", "lead", "sum", "average" or "count").field
- The data field for which to compute the aggregate or window function. This can be omitted for window functions that do not operate over a field such as "count", "rank", "dense_rank".param
- Parameter values for the window functions. Parameter values can be omitted for operations that do not accept a parameter.as
- The output name for the window operation.
A sort field definition for sorting data objects within a window.
-
Constructor Summary
ConstructorDescriptionWindowTransformField
(String op, String field, double param, String as) Creates an instance of aWindowTransformField
record class. -
Method Summary
Modifier and TypeMethodDescriptionas()
Returns the value of theas
record component.final boolean
Indicates whether some other object is "equal to" this one.field()
Returns the value of thefield
record component.final int
hashCode()
Returns a hash code value for this object.op()
Returns the value of theop
record component.double
param()
Returns the value of theparam
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
Method Details
-
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. Reference components are compared withObjects::equals(Object,Object)
; primitive components are compared with '=='. -
op
Returns the value of theop
record component.- Returns:
- the value of the
op
record component
-
field
Returns the value of thefield
record component.- Returns:
- the value of the
field
record component
-
param
public double param()Returns the value of theparam
record component.- Returns:
- the value of the
param
record component
-
as
Returns the value of theas
record component.- Returns:
- the value of the
as
record component
-