Class StatementId


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

      • 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 Detail

      • deserialize

        public static StatementId deserialize​(String serializedStatementId)
        Deserializes a StatementId from a serialized string
      • 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