Package io.trino.metadata
Class TypeRegistry
- java.lang.Object
-
- io.trino.metadata.TypeRegistry
-
@ThreadSafe public final class TypeRegistry extends Object
-
-
Constructor Summary
Constructors Constructor Description TypeRegistry(TypeOperators typeOperators, FeaturesConfig featuresConfig)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddParametricType(ParametricType parametricType)voidaddType(Type type)voidaddType(String alias, Type type)TypefromSqlType(String sqlType)Collection<ParametricType>getParametricTypes()TypegetType(TypeId id)TypegetType(TypeSignature signature)TypeOperatorsgetTypeOperators()Collection<Type>getTypes()voidverifyTypes()
-
-
-
Constructor Detail
-
TypeRegistry
@Inject public TypeRegistry(TypeOperators typeOperators, FeaturesConfig featuresConfig)
-
-
Method Detail
-
getType
public Type getType(TypeSignature signature)
-
getTypes
public Collection<Type> getTypes()
-
getParametricTypes
public Collection<ParametricType> getParametricTypes()
-
addType
public void addType(Type type)
-
addParametricType
public void addParametricType(ParametricType parametricType)
-
getTypeOperators
public TypeOperators getTypeOperators()
-
verifyTypes
public void verifyTypes()
-
-