Package io.prestosql
Class Session.SessionBuilder
- java.lang.Object
-
- io.prestosql.Session.SessionBuilder
-
-
Method Summary
-
-
-
Method Detail
-
setQueryId
public Session.SessionBuilder setQueryId(QueryId queryId)
-
setTransactionId
public Session.SessionBuilder setTransactionId(TransactionId transactionId)
-
setClientTransactionSupport
public Session.SessionBuilder setClientTransactionSupport()
-
setCatalog
public Session.SessionBuilder setCatalog(String catalog)
-
setLocale
public Session.SessionBuilder setLocale(Locale locale)
-
setRemoteUserAddress
public Session.SessionBuilder setRemoteUserAddress(String remoteUserAddress)
-
setSchema
public Session.SessionBuilder setSchema(String schema)
-
setPath
public Session.SessionBuilder setPath(SqlPath path)
-
setSource
public Session.SessionBuilder setSource(String source)
-
setTraceToken
public Session.SessionBuilder setTraceToken(Optional<String> traceToken)
-
setStart
public Session.SessionBuilder setStart(Instant start)
-
setTimeZoneKey
public Session.SessionBuilder setTimeZoneKey(TimeZoneKey timeZoneKey)
-
setIdentity
public Session.SessionBuilder setIdentity(Identity identity)
-
setUserAgent
public Session.SessionBuilder setUserAgent(String userAgent)
-
setClientInfo
public Session.SessionBuilder setClientInfo(String clientInfo)
-
setClientTags
public Session.SessionBuilder setClientTags(Set<String> clientTags)
-
setClientCapabilities
public Session.SessionBuilder setClientCapabilities(Set<String> clientCapabilities)
-
setResourceEstimates
public Session.SessionBuilder setResourceEstimates(ResourceEstimates resourceEstimates)
-
setSystemProperty
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 '='.
-
setCatalogSessionProperty
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
public Session.SessionBuilder addPreparedStatement(String statementName, String query)
-
build
public Session build()
-
-