Package io.trino.spi.function
Record Class LanguageFunction
java.lang.Object
java.lang.Record
io.trino.spi.function.LanguageFunction
-
Constructor Summary
ConstructorsConstructorDescriptionLanguageFunction(String signatureToken, String sql, List<CatalogSchemaName> path, Optional<String> owner) Creates an instance of aLanguageFunctionrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.owner()Returns the value of theownerrecord component.path()Returns the value of thepathrecord component.Returns the value of thesignatureTokenrecord component.sql()Returns the value of thesqlrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
LanguageFunction
public LanguageFunction(String signatureToken, String sql, List<CatalogSchemaName> path, Optional<String> owner) Creates an instance of aLanguageFunctionrecord class.- Parameters:
signatureToken- the value for thesignatureTokenrecord componentsql- the value for thesqlrecord componentpath- the value for thepathrecord componentowner- the value for theownerrecord 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. All components in this record class are compared withObjects::equals(Object,Object). -
signatureToken
Returns the value of thesignatureTokenrecord component.- Returns:
- the value of the
signatureTokenrecord component
-
sql
Returns the value of thesqlrecord component.- Returns:
- the value of the
sqlrecord component
-
path
Returns the value of thepathrecord component.- Returns:
- the value of the
pathrecord component
-
owner
Returns the value of theownerrecord component.- Returns:
- the value of the
ownerrecord component
-