Class SessionId
- java.lang.Object
-
- com.databricks.jdbc.dbclient.impl.common.SessionId
-
public class SessionId extends Object
A Session-Id identifier to uniquely identify a connection session
-
-
Constructor Summary
Constructors Constructor Description SessionId(THandleIdentifier identifier, IDatabricksComputeResource computeResource)Constructs a SessionId identifier for a given Thrift Server session-IdSessionId(String sessionId, IDatabricksComputeResource warehouseId)Constructs a SessionId identifier for a given SQL Exec session-Id
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static SessionIdcreate(ImmutableSessionInfo sessionInfo)Creates a SessionId identifier for a given Thrift Server session-Idstatic SessionIddeserialize(String serializedSessionId)Deserializes a SessionId from a serialized stringbooleanequals(Object otherSession)DatabricksClientTypegetClientType()Returns the client-type for the given session-IdImmutableSessionInfogetSessionInfo()Returns an ImmutableSessionInfo for the given session-IdStringtoString()
-
-
-
Constructor Detail
-
SessionId
public SessionId(String sessionId, IDatabricksComputeResource warehouseId)
Constructs a SessionId identifier for a given SQL Exec session-Id
-
SessionId
public SessionId(THandleIdentifier identifier, IDatabricksComputeResource computeResource)
Constructs a SessionId identifier for a given Thrift Server session-Id
-
-
Method Detail
-
create
public static SessionId create(ImmutableSessionInfo sessionInfo)
Creates a SessionId identifier for a given Thrift Server session-Id
-
deserialize
public static SessionId deserialize(String serializedSessionId) throws SQLException
Deserializes a SessionId from a serialized string- Throws:
SQLException
-
getSessionInfo
public ImmutableSessionInfo getSessionInfo()
Returns an ImmutableSessionInfo for the given session-Id
-
getClientType
public DatabricksClientType getClientType()
Returns the client-type for the given session-Id
-
-