Object

org.apache.spark.sql.execution

ConnectionPool

Related Doc: package execution

Permalink

object ConnectionPool

A global way to obtain a pooled DataSource with a given set of pool and connection properties.

Supports Tomcat-JDBC pool and HikariCP.

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ConnectionPool
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

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 clear(): Unit

    Permalink

    To be invoked only on SparkContext stop or from tests (or LDAP refresh).

  6. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  7. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  8. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  9. def finalize(): Unit

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

    Permalink
    Definition Classes
    AnyRef → Any
  11. def getPoolConnection(id: String, dialect: JdbcDialect, poolProps: Map[String, String], connProps: Properties, hikariCP: Boolean): Connection

    Permalink

    Utility method to get the connection from DataSource returned by getPoolDataSource.

    Utility method to get the connection from DataSource returned by getPoolDataSource.

    See also

    getPoolDataSource

  12. def getPoolDataSource(id: String, props: Map[String, String], connectionProps: Properties, hikariCP: Boolean): DataSource

    Permalink

    Get a pooled DataSource for a given ID, pool properties and connection properties.

    Get a pooled DataSource for a given ID, pool properties and connection properties. Currently two pool implementations are supported namely Tomcat-JDBC pool and HikariCP implementation which is selected by an optional boolean argument (default is false i.e. tomcat pool).

    It is assumed and required that the set of pool properties, connection properties (and whether tomcat or hikari pool is to be used) are provided as identical for the same ID.

    id

    an ID for a pool that will shared by all requests against the same id (e.g. the table name can be the ID for an external table)

    props

    map of pool properties to their values; the key can be either PoolProperty.Type or a string (as in Tomcat or Hikari)

    connectionProps

    set of any additional connection properties

    hikariCP

    if true then use HikariCP else Tomcat-JDBC pool implementation; default is false i.e. Tomcat pool

  13. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  14. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  15. final def ne(arg0: AnyRef): Boolean

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

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

    Permalink
    Definition Classes
    AnyRef
  18. def removePoolReference(id: String, userName: String): Boolean

    Permalink
  19. def removePoolReference(id: String): Boolean

    Permalink

    Remove reference to the pool for given ID.

    Remove reference to the pool for given ID. Also will cleanup and remove the pool if all the references have been removed.

    returns

    true if this was the last reference and entire pool was removed and false otherwise

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

    Permalink
    Definition Classes
    AnyRef
  21. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  22. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped