Packages

final case class ExasolConnectionManager(config: ExasolConfiguration) extends Product with Serializable

A class that provides and manages Exasol connections.

It is okay to serialize this class to Spark workers, it will create Exasol jdbc connections within each executor JVM.

config

An ExasolConfiguration with user provided or runtime configuration parameters

Linear Supertypes
Serializable, Serializable, Product, Equals, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ExasolConnectionManager
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. AnyRef
  7. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new ExasolConnectionManager(config: ExasolConfiguration)

    config

    An ExasolConfiguration with user provided or runtime configuration parameters

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native() @HotSpotIntrinsicCandidate()
  6. val config: ExasolConfiguration
  7. def createTable(tableName: String, tableSchema: String): Unit

    Creates a table in Exasol.

    Creates a table in Exasol.

    tableName

    A table name (with both schema and table, e.g. myschem.my_table)

  8. def dropTable(tableName: String): Unit

    Given an Exasol table name (with schema, e.g mySchema.myTable format), drop it.

  9. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  10. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  11. def getConnection(): EXAConnection

    A single non-pooled com.exasol.jdbc.EXAConnection connection.

    A single non-pooled com.exasol.jdbc.EXAConnection connection.

    Maintaining and gracefully closing the connection is a responsibility of the user.

  12. def getJdbcConnectionString(): String

    A regular Exasol jdbc connection string

  13. def initParallel(mainConnection: EXAConnection): Int

    Starts a parallel sub-connections from the main JDBC connection.

    Starts a parallel sub-connections from the main JDBC connection.

    mainConnection

    the main connection

    returns

    the number of parallel connections

  14. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  15. def mainConnection(): EXAConnection
  16. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  17. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  18. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  19. def subConnection(subConnectionUrl: String): EXAConnection

    Creates a JDBC connection using one of the sub-connection URL strings.

    Creates a JDBC connection using one of the sub-connection URL strings.

    subConnectionUrl

    one of the sub-connection strings

    returns

    a JDBC connection on the separate parallel connection

  20. def subConnections(mainConnection: EXAConnection): Seq[String]

    Returns the list of all parallel sub-connection URLs.

    Returns the list of all parallel sub-connection URLs.

    mainConnection

    the main connection

    returns

    the list of sub-connections URLs

  21. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  22. def tableExists(tableName: String): Boolean

    Checks if table already exists, if so should return true otherwise false.

    Checks if table already exists, if so should return true otherwise false.

    TODO: This should be changed to Exasol specific checks. For example, by using EXA_USER_TABLES.

    tableName

    A Exasol table name including schema, e.g. schema.tableName

    returns

    true if table exists, otherwise return false

  23. def truncateTable(tableName: String): Unit

    Given an Exasol table name (with schema, e.g mySchema.myTable format), truncates it.

  24. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  25. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  26. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  27. def withConnection[T](handle: (EXAConnection) ⇒ T): T

    A method to run with a new connection.

    A method to run with a new connection.

    This method closes the connection afterwards.

    T

    A result type of the handle function

    handle

    A code block that needs to be run with a connection

    returns

    A result of handle function

  28. def withCountQuery(query: String): Long

    Given a query with count(*) returns the result.

  29. def withExecute(queries: Seq[String]): Unit

    A helper method to run stmt.execute given a list of queries.

    A helper method to run stmt.execute given a list of queries.

    queries

    A list of SQL queries to run

    returns

    A scala.Unit result

  30. def withExecuteQuery[T](query: String)(handle: (EXAResultSet) ⇒ T): T

    A helper method to run stmt.executeQuery given a query.

    A helper method to run stmt.executeQuery given a query.

    T

    A result type of the handle function

    query

    A query string to executeQuery

    returns

    A result of handle function

  31. def withStatement[T](handle: (EXAStatement) ⇒ T): T

    A helper method to run with a new statement.

    A helper method to run with a new statement.

    This method closes the resources afterwards.

    T

    A result type of the handle function

    handle

    A code block that needs to be run with a given statement

    returns

    A result of handle function

  32. def writerMainConnection(): EXAConnection

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] ) @Deprecated
    Deprecated

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from AnyRef

Inherited from Any

Ungrouped