Record Class ProjectionAstNode
java.lang.Object
java.lang.Record
org.impulsegraph.compiler.cel.ProjectionAstNode
public record ProjectionAstNode(String targetStateField, Reducer reducer, String coReducerParam, CelAstNode rhsExpression)
extends Record
Represents a single parsed state projection assignment and reduction rule.
-
Constructor Summary
ConstructorsConstructorDescriptionProjectionAstNode(String targetStateField, Reducer reducer, String coReducerParam, CelAstNode rhsExpression) Creates an instance of aProjectionAstNoderecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecoReducerParamrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.reducer()Returns the value of thereducerrecord component.Returns the value of therhsExpressionrecord component.Returns the value of thetargetStateFieldrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ProjectionAstNode
public ProjectionAstNode(String targetStateField, Reducer reducer, String coReducerParam, CelAstNode rhsExpression) Creates an instance of aProjectionAstNoderecord class.- Parameters:
targetStateField- the value for thetargetStateFieldrecord componentreducer- the value for thereducerrecord componentcoReducerParam- the value for thecoReducerParamrecord componentrhsExpression- the value for therhsExpressionrecord 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. All components in this record class are compared withObjects::equals(Object,Object). -
targetStateField
Returns the value of thetargetStateFieldrecord component.- Returns:
- the value of the
targetStateFieldrecord component
-
reducer
Returns the value of thereducerrecord component.- Returns:
- the value of the
reducerrecord component
-
coReducerParam
Returns the value of thecoReducerParamrecord component.- Returns:
- the value of the
coReducerParamrecord component
-
rhsExpression
Returns the value of therhsExpressionrecord component.- Returns:
- the value of the
rhsExpressionrecord component
-