Package io.trino.testing
Class TestingSessionContext
- java.lang.Object
-
- io.trino.testing.TestingSessionContext
-
- All Implemented Interfaces:
SessionContext
public class TestingSessionContext extends Object implements SessionContext
-
-
Constructor Summary
Constructors Constructor Description TestingSessionContext(Session session)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Optional<Identity>getAuthenticatedIdentity()StringgetCatalog()Map<String,Map<String,String>>getCatalogSessionProperties()Set<String>getClientCapabilities()StringgetClientInfo()Set<String>getClientTags()IdentitygetIdentity()StringgetLanguage()StringgetPath()Map<String,String>getPreparedStatements()ProtocolHeadersgetProtocolHeaders()StringgetRemoteUserAddress()ResourceEstimatesgetResourceEstimates()StringgetSchema()StringgetSource()Map<String,String>getSystemProperties()StringgetTimeZoneId()Optional<String>getTraceToken()Optional<TransactionId>getTransactionId()StringgetUserAgent()booleansupportClientTransaction()
-
-
-
Constructor Detail
-
TestingSessionContext
public TestingSessionContext(Session session)
-
-
Method Detail
-
getProtocolHeaders
public ProtocolHeaders getProtocolHeaders()
- Specified by:
getProtocolHeadersin interfaceSessionContext
-
getAuthenticatedIdentity
public Optional<Identity> getAuthenticatedIdentity()
- Specified by:
getAuthenticatedIdentityin interfaceSessionContext
-
getIdentity
public Identity getIdentity()
- Specified by:
getIdentityin interfaceSessionContext
-
getCatalog
public String getCatalog()
- Specified by:
getCatalogin interfaceSessionContext
-
getSchema
public String getSchema()
- Specified by:
getSchemain interfaceSessionContext
-
getPath
public String getPath()
- Specified by:
getPathin interfaceSessionContext
-
getSource
public String getSource()
- Specified by:
getSourcein interfaceSessionContext
-
getTraceToken
public Optional<String> getTraceToken()
- Specified by:
getTraceTokenin interfaceSessionContext
-
getRemoteUserAddress
public String getRemoteUserAddress()
- Specified by:
getRemoteUserAddressin interfaceSessionContext
-
getUserAgent
public String getUserAgent()
- Specified by:
getUserAgentin interfaceSessionContext
-
getClientInfo
public String getClientInfo()
- Specified by:
getClientInfoin interfaceSessionContext
-
getClientTags
public Set<String> getClientTags()
- Specified by:
getClientTagsin interfaceSessionContext
-
getClientCapabilities
public Set<String> getClientCapabilities()
- Specified by:
getClientCapabilitiesin interfaceSessionContext
-
getResourceEstimates
public ResourceEstimates getResourceEstimates()
- Specified by:
getResourceEstimatesin interfaceSessionContext
-
getTimeZoneId
public String getTimeZoneId()
- Specified by:
getTimeZoneIdin interfaceSessionContext
-
getLanguage
public String getLanguage()
- Specified by:
getLanguagein interfaceSessionContext
-
getSystemProperties
public Map<String,String> getSystemProperties()
- Specified by:
getSystemPropertiesin interfaceSessionContext
-
getCatalogSessionProperties
public Map<String,Map<String,String>> getCatalogSessionProperties()
- Specified by:
getCatalogSessionPropertiesin interfaceSessionContext
-
getPreparedStatements
public Map<String,String> getPreparedStatements()
- Specified by:
getPreparedStatementsin interfaceSessionContext
-
getTransactionId
public Optional<TransactionId> getTransactionId()
- Specified by:
getTransactionIdin interfaceSessionContext
-
supportClientTransaction
public boolean supportClientTransaction()
- Specified by:
supportClientTransactionin interfaceSessionContext
-
-