Record Class PushdownFunctions
java.lang.Object
java.lang.Record
com.darkcollective.relix.plan.internal.PushdownFunctions
- Record Components:
catalog- the functions a call resolves in; never nullcontext- the run's ambient state, holding its pinned clock — null when the planner was not told it, in which case nothing is substituted and the renderers behave as they did before substitution existed
What a renderer needs to know about functions: which ones exist, and — for the ones
that are constant for a run — what this run's ambient state says they are.
The two travel together because the second is useless without the first and is wanted in exactly the place the first already reaches: the arm that renders a call. Carrying the context as a further parameter would thread it through every recursive step of two expression renderers to be read in two of them.
-
Constructor Summary
ConstructorsConstructorDescriptionPushdownFunctions(FunctionCatalog catalog, FunctionContext context) Creates an instance of aPushdownFunctionsrecord class. -
Method Summary
Modifier and TypeMethodDescriptioncatalog()Returns the value of thecatalogrecord component.context()Returns the value of thecontextrecord component.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.
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
catalog
Returns the value of thecatalogrecord component.- Returns:
- the value of the
catalogrecord component
-
context
Returns the value of thecontextrecord component.- Returns:
- the value of the
contextrecord component
-