Interface IDatabricksSession

  • All Known Implementing Classes:
    DatabricksSession

    public interface IDatabricksSession
    Session interface to represent an open connection to Databricks server.
    • Method Detail

      • getSessionId

        @Nullable
        String getSessionId()
        Get the unique session-Id associated with the session.
        Returns:
        session-Id
      • isOpen

        boolean isOpen()
        Checks if session is open and valid.
        Returns:
        true if session is open
      • getDatabricksClient

        IDatabricksClient getDatabricksClient()
        Returns the client for connecting to Databricks server
      • getCatalog

        String getCatalog()
        Returns default catalog associated with the session
      • getCompressionCodec

        CompressionCodec getCompressionCodec()
        Returns the compression algorithm used on results data
      • getSchema

        String getSchema()
        Returns default schema associated with the session
      • setCatalog

        void setCatalog​(String catalog)
        Sets the default catalog
      • setSchema

        void setSchema​(String schema)
        Sets the default schema
      • getSessionConfigs

        Map<String,​String> getSessionConfigs()
        Returns the session configs
      • setSessionConfig

        void setSessionConfig​(String name,
                              String value)
        Sets the session config
      • getClientInfoProperties

        Map<String,​String> getClientInfoProperties()
        Returns the client info properties
      • setClientInfoProperty

        void setClientInfoProperty​(String name,
                                   String value)
        Sets the client info property
      • setEmptyMetadataClient

        void setEmptyMetadataClient()
      • forceClose

        void forceClose()