Package io.trino
Class Session.SessionBuilder
java.lang.Object
io.trino.Session.SessionBuilder
- Enclosing class:
Session
-
Method Summary
Modifier and TypeMethodDescriptionaddPreparedStatement(String statementName, String query) build()setCatalog(String catalog) setCatalog(Optional<String> catalog) setCatalogSessionProperty(String catalogName, String propertyName, String propertyValue) Sets a catalog property for the session.setClientCapabilities(Set<String> clientCapabilities) setClientInfo(String clientInfo) setClientInfo(Optional<String> clientInfo) setClientTags(Set<String> clientTags) setIdentity(Identity identity) setOriginalIdentity(Identity originalIdentity) setProtocolHeaders(ProtocolHeaders protocolHeaders) setQueryId(QueryId queryId) setQuerySpan(io.opentelemetry.api.trace.Span querySpan) setRemoteUserAddress(String remoteUserAddress) setRemoteUserAddress(Optional<String> remoteUserAddress) setResourceEstimates(ResourceEstimates resourceEstimates) setSystemProperties(Map<String, String> systemProperties) Sets system properties, discarding any system properties previously set.setSystemProperty(String propertyName, String propertyValue) Sets a system property for the session.setTimeZoneKey(TimeZoneKey timeZoneKey) setTimeZoneKey(Optional<TimeZoneKey> timeZoneKey) setTraceToken(Optional<String> traceToken) setTransactionId(TransactionId transactionId) setUserAgent(String userAgent) setUserAgent(Optional<String> userAgent)
-
Method Details
-
setQueryId
-
setQuerySpan
@CanIgnoreReturnValue public Session.SessionBuilder setQuerySpan(io.opentelemetry.api.trace.Span querySpan) -
setTransactionId
-
setClientTransactionSupport
-
setCatalog
-
setCatalog
-
setLocale
-
setRemoteUserAddress
-
setRemoteUserAddress
@CanIgnoreReturnValue public Session.SessionBuilder setRemoteUserAddress(Optional<String> remoteUserAddress) -
setSchema
-
setSchema
-
setPath
-
setSource
-
setSource
-
setTraceToken
-
setStart
-
setTimeZoneKey
-
setTimeZoneKey
@CanIgnoreReturnValue public Session.SessionBuilder setTimeZoneKey(Optional<TimeZoneKey> timeZoneKey) -
setIdentity
-
setOriginalIdentity
-
setUserAgent
-
setUserAgent
-
setClientInfo
-
setClientInfo
-
setClientTags
-
setClientCapabilities
@CanIgnoreReturnValue public Session.SessionBuilder setClientCapabilities(Set<String> clientCapabilities) -
setResourceEstimates
@CanIgnoreReturnValue public Session.SessionBuilder setResourceEstimates(ResourceEstimates resourceEstimates) -
setSystemProperty
@CanIgnoreReturnValue public Session.SessionBuilder setSystemProperty(String propertyName, String propertyValue) Sets a system property for the session. The property name and value must only contain characters from US-ASCII and must not be for '='. -
setSystemProperties
@CanIgnoreReturnValue public Session.SessionBuilder setSystemProperties(Map<String, String> systemProperties) Sets system properties, discarding any system properties previously set. -
setCatalogSessionProperty
@CanIgnoreReturnValue public Session.SessionBuilder setCatalogSessionProperty(String catalogName, String propertyName, String propertyValue) Sets a catalog property for the session. The property name and value must only contain characters from US-ASCII and must not be for '='. -
addPreparedStatement
@CanIgnoreReturnValue public Session.SessionBuilder addPreparedStatement(String statementName, String query) -
setProtocolHeaders
@CanIgnoreReturnValue public Session.SessionBuilder setProtocolHeaders(ProtocolHeaders protocolHeaders) -
build
-