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
ConstructorsConstructorDescriptionWindowTransformField(String op, String field, double param, String as) Creates an instance of aWindowTransformFieldrecord class. -
Method Summary
Modifier and TypeMethodDescriptionas()Returns the value of theasrecord component.final booleanIndicates whether some other object is "equal to" this one.field()Returns the value of thefieldrecord component.final inthashCode()Returns a hash code value for this object.op()Returns the value of theoprecord component.doubleparam()Returns the value of theparamrecord component.final StringtoString()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 theoprecord component.- Returns:
- the value of the
oprecord component
-
field
Returns the value of thefieldrecord component.- Returns:
- the value of the
fieldrecord component
-
param
public double param()Returns the value of theparamrecord component.- Returns:
- the value of the
paramrecord component
-
as
Returns the value of theasrecord component.- Returns:
- the value of the
asrecord component
-