Package io.trino.sql.routine
Record Class SqlRoutineAnalysis
java.lang.Object
java.lang.Record
io.trino.sql.routine.SqlRoutineAnalysis
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionanalysis()Returns the value of theanalysisrecord component.Returns the value of theargumentsrecord component.booleanReturns the value of thecalledOnNullrecord component.comment()Returns the value of thecommentrecord component.booleanReturns the value of thedeterministicrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.name()Returns the value of thenamerecord component.Returns the value of thereturnTyperecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
SqlRoutineAnalysis
public SqlRoutineAnalysis(String name, Map<String, Type> arguments, Type returnType, boolean calledOnNull, boolean deterministic, Optional<String> comment, Analysis analysis) Creates an instance of aSqlRoutineAnalysisrecord class.- Parameters:
name- the value for thenamerecord componentarguments- the value for theargumentsrecord componentreturnType- the value for thereturnTyperecord componentcalledOnNull- the value for thecalledOnNullrecord componentdeterministic- the value for thedeterministicrecord componentcomment- the value for thecommentrecord componentanalysis- the value for theanalysisrecord component
-
-
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 '=='. -
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
arguments
Returns the value of theargumentsrecord component.- Returns:
- the value of the
argumentsrecord component
-
returnType
Returns the value of thereturnTyperecord component.- Returns:
- the value of the
returnTyperecord component
-
calledOnNull
public boolean calledOnNull()Returns the value of thecalledOnNullrecord component.- Returns:
- the value of the
calledOnNullrecord component
-
deterministic
public boolean deterministic()Returns the value of thedeterministicrecord component.- Returns:
- the value of the
deterministicrecord component
-
comment
Returns the value of thecommentrecord component.- Returns:
- the value of the
commentrecord component
-
analysis
Returns the value of theanalysisrecord component.- Returns:
- the value of the
analysisrecord component
-