Package io.trino.metadata
Class Signature
java.lang.Object
io.trino.metadata.Signature
-
Constructor Summary
ConstructorsConstructorDescriptionSignature(String name, TypeSignature returnType, TypeSignature... argumentTypes) Signature(String name, TypeSignature returnType, List<TypeSignature> argumentTypes) Signature(String name, List<TypeVariableConstraint> typeVariableConstraints, List<LongVariableConstraint> longVariableConstraints, TypeSignature returnType, List<TypeSignature> argumentTypes, boolean variableArity) -
Method Summary
Modifier and TypeMethodDescriptionstatic SignatureBuilderbuilder()static TypeVariableConstraintcastableFromTypeParameter(String name, TypeSignature... toType) static TypeVariableConstraintcastableFromTypeParameter(String name, Set<TypeSignature> toType) static TypeVariableConstraintcastableToTypeParameter(String name, TypeSignature... toType) static TypeVariableConstraintcastableToTypeParameter(String name, Set<TypeSignature> toType) static TypeVariableConstraintstatic TypeVariableConstraintcomparableWithVariadicBound(String name, String variadicBound) booleangetName()inthashCode()static booleanisOperatorName(String mangledName) booleanstatic LongVariableConstraintlongVariableExpression(String variable, String expression) static StringmangleOperatorName(OperatorType operatorType) static TypeVariableConstraintorderableTypeParameter(String name) static TypeVariableConstraintorderableWithVariadicBound(String name, String variadicBound) toString()static TypeVariableConstrainttypeVariable(String name) static OperatorTypeunmangleOperator(String mangledName) static TypeVariableConstraintwithVariadicBound(String name, String variadicBound)
-
Constructor Details
-
Signature
public Signature(String name, List<TypeVariableConstraint> typeVariableConstraints, List<LongVariableConstraint> longVariableConstraints, TypeSignature returnType, List<TypeSignature> argumentTypes, boolean variableArity) -
Signature
-
Signature
-
-
Method Details
-
isOperatorName
-
mangleOperatorName
-
unmangleOperator
-
getName
-
getReturnType
-
getArgumentTypes
-
isVariableArity
public boolean isVariableArity() -
getTypeVariableConstraints
-
getLongVariableConstraints
-
hashCode
public int hashCode() -
equals
-
toString
-
withVariadicBound
-
comparableWithVariadicBound
-
typeVariable
-
comparableTypeParameter
-
orderableWithVariadicBound
-
orderableTypeParameter
-
castableToTypeParameter
-
castableToTypeParameter
public static TypeVariableConstraint castableToTypeParameter(String name, Set<TypeSignature> toType) -
castableFromTypeParameter
public static TypeVariableConstraint castableFromTypeParameter(String name, TypeSignature... toType) -
castableFromTypeParameter
public static TypeVariableConstraint castableFromTypeParameter(String name, Set<TypeSignature> toType) -
longVariableExpression
-
builder
-