Package io.trino.metadata
Class SessionPropertyManager
java.lang.Object
io.trino.metadata.SessionPropertyManager
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionSessionPropertyManager(SystemSessionPropertiesProvider systemSessionPropertiesProvider) SessionPropertyManager(Set<SystemSessionPropertiesProvider> systemSessionProperties, CatalogServiceProvider<Map<String, PropertyMetadata<?>>> connectorSessionProperties) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddSystemSessionProperties(List<PropertyMetadata<?>> systemSessionProperties) voidaddSystemSessionProperty(PropertyMetadata<?> sessionProperty) <T> TdecodeCatalogPropertyValue(CatalogHandle catalogHandle, String catalogName, String propertyName, String propertyValue, Class<T> type) <T> TdecodeSystemPropertyValue(String name, String value, Class<T> type) static ObjectevaluatePropertyValue(Expression expression, Type expectedType, Session session, PlannerContext plannerContext, AccessControl accessControl, Map<NodeRef<Parameter>, Expression> parameters) getAllSessionProperties(Session session, List<CatalogInfo> catalogInfos) getConnectorSessionPropertyMetadata(CatalogHandle catalogHandle, String propertyName) static StringserializeSessionProperty(Type type, Object value) voidvalidateCatalogSessionProperty(String catalogName, CatalogHandle catalogHandle, String propertyName, String propertyValue) voidvalidateSystemSessionProperty(String propertyName, String propertyValue)
-
Constructor Details
-
SessionPropertyManager
public SessionPropertyManager() -
SessionPropertyManager
-
SessionPropertyManager
public SessionPropertyManager(Set<SystemSessionPropertiesProvider> systemSessionProperties, CatalogServiceProvider<Map<String, PropertyMetadata<?>>> connectorSessionProperties)
-
-
Method Details
-
addSystemSessionProperties
-
addSystemSessionProperty
-
getSystemSessionPropertyMetadata
-
getConnectorSessionPropertyMetadata
public Optional<PropertyMetadata<?>> getConnectorSessionPropertyMetadata(CatalogHandle catalogHandle, String propertyName) -
getAllSessionProperties
public List<SessionPropertyManager.SessionPropertyValue> getAllSessionProperties(Session session, List<CatalogInfo> catalogInfos) -
decodeSystemPropertyValue
-
decodeCatalogPropertyValue
public <T> T decodeCatalogPropertyValue(CatalogHandle catalogHandle, String catalogName, String propertyName, @Nullable String propertyValue, Class<T> type) -
validateSystemSessionProperty
-
validateCatalogSessionProperty
public void validateCatalogSessionProperty(String catalogName, CatalogHandle catalogHandle, String propertyName, String propertyValue) -
evaluatePropertyValue
public static Object evaluatePropertyValue(Expression expression, Type expectedType, Session session, PlannerContext plannerContext, AccessControl accessControl, Map<NodeRef<Parameter>, Expression> parameters) -
serializeSessionProperty
-