org.apache.spark.sql.execution

ConnectionPool

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
Learn more about member selection
Visibility
  1. Public
  2. All

Value Members

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

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

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

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  7. def clone(): AnyRef

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

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

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

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

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

    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

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

    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

  14. def hashCode(): Int

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

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

    Definition Classes
    AnyRef
  17. final def notify(): Unit

    Definition Classes
    AnyRef
  18. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  19. def removePoolReference(id: String): Boolean

    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

    Definition Classes
    AnyRef
  21. def toString(): String

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

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped