public class TestingConnectorSession extends Object implements ConnectorSession
| Modifier and Type | Field and Description |
|---|---|
static ConnectorSession |
SESSION |
| Constructor and Description |
|---|
TestingConnectorSession(List<PropertyMetadata<?>> properties) |
TestingConnectorSession(String user,
Optional<String> source,
Optional<String> traceToken,
TimeZoneKey timeZoneKey,
Locale locale,
long startTime,
List<PropertyMetadata<?>> propertyMetadatas,
Map<String,Object> propertyValues,
boolean isLegacyTimestamp) |
| Modifier and Type | Method and Description |
|---|---|
ConnectorIdentity |
getIdentity() |
Locale |
getLocale() |
<T> T |
getProperty(String name,
Class<T> type) |
String |
getQueryId() |
Optional<String> |
getSource() |
long |
getStartTime() |
TimeZoneKey |
getTimeZoneKey() |
Optional<String> |
getTraceToken() |
boolean |
isLegacyTimestamp() |
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetUserpublic static final ConnectorSession SESSION
public TestingConnectorSession(List<PropertyMetadata<?>> properties)
public String getQueryId()
getQueryId in interface ConnectorSessionpublic Optional<String> getSource()
getSource in interface ConnectorSessionpublic ConnectorIdentity getIdentity()
getIdentity in interface ConnectorSessionpublic TimeZoneKey getTimeZoneKey()
getTimeZoneKey in interface ConnectorSessionpublic Locale getLocale()
getLocale in interface ConnectorSessionpublic long getStartTime()
getStartTime in interface ConnectorSessionpublic Optional<String> getTraceToken()
getTraceToken in interface ConnectorSessionpublic boolean isLegacyTimestamp()
isLegacyTimestamp in interface ConnectorSessionpublic <T> T getProperty(String name, Class<T> type)
getProperty in interface ConnectorSessionCopyright © 2012–2019. All rights reserved.