Class StatementId

java.lang.Object
com.databricks.jdbc.dbclient.impl.common.StatementId

public class StatementId extends Object
A Statement-Id identifier to uniquely identify an executed statement
  • Constructor Details

    • StatementId

      public StatementId(String statementId)
      Constructs a StatementId identifier for a given SQl Exec statement-Id
    • StatementId

      public StatementId(THandleIdentifier identifier)
      Constructs a StatementId identifier for a given Thrift Server operation handle
  • Method Details

    • deserialize

      public static StatementId deserialize(String serializedStatementId)
      Deserializes a StatementId from a serialized string
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • toOperationIdentifier

      public THandleIdentifier toOperationIdentifier()
      Returns a Thrift operation handle for the given StatementId
    • toSQLExecStatementId

      public String toSQLExecStatementId()
      Returns a SQL Exec statement handle for the given StatementId
    • loggableStatementId

      public static String loggableStatementId(TOperationHandle operationHandle)
      Returns a loggable statement Id for the given Thrift operation handle. This is used for logging purposes to avoid logging sensitive information.
    • equals

      public boolean equals(Object otherStatement)
      Overrides:
      equals in class Object