Class/Object

com.exasol.spark.util

ExasolConnectionManager

Related Docs: object ExasolConnectionManager | package util

Permalink

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
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)

    Permalink

    config

    An ExasolConfiguration with user provided or runtime configuration parameters

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  6. val config: ExasolConfiguration

    Permalink

    An ExasolConfiguration with user provided or runtime configuration parameters

  7. def createTable(tableName: String, tableSchema: String): Unit

    Permalink

    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

    Permalink

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

  9. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  10. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  11. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  12. def getConnection(): EXAConnection

    Permalink

    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.

  13. def getJdbcConnectionString(): String

    Permalink

    A regular Exasol jdbc connection string

  14. def initParallel(mainConn: EXAConnection): Int

    Permalink
  15. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  16. def mainConnection(): EXAConnection

    Permalink
  17. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  18. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  19. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  20. def subConnection(subConnectionUrl: String): EXAConnection

    Permalink
  21. def subConnections(mainConn: EXAConnection): Seq[String]

    Permalink
  22. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  23. def tableExists(tableName: String): Boolean

    Permalink

    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

  24. def truncateTable(tableName: String): Unit

    Permalink

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

  25. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  26. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  27. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  28. def withConnection[T](handle: (EXAConnection) ⇒ T): T

    Permalink

    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

  29. def withCountQuery(query: String): Long

    Permalink

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

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

    Permalink

    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

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

    Permalink

    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

    Annotations
    @SuppressWarnings()
  32. def withStatement[T](handle: (EXAStatement) ⇒ T): T

    Permalink

    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

    Annotations
    @SuppressWarnings()
  33. def writerMainConnection(): EXAConnection

    Permalink

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from AnyRef

Inherited from Any

Ungrouped