final case class JdbcReadOptions[T](connectionOptions: JdbcConnectionOptions, query: String, statementPreparator: (PreparedStatement) => Unit = null, rowMapper: (ResultSet) => T, fetchSize: Int = JdbcIO.ReadParam.BeamDefaultFetchSize, outputParallelization: Boolean = JdbcIO.ReadParam.DefaultOutputParallelization) extends JdbcIoOptions with Product with Serializable
Options for reading from a JDBC source.
- connectionOptions
connection options
- query
query string
- statementPreparator
function to prepare a java.sql.PreparedStatement
- rowMapper
function to map from a SQL java.sql.ResultSet to
T
- fetchSize
use apache beam default fetch size if the value is -1
- outputParallelization
reshuffle result to distribute it to all workers. Default to true.
- Annotations
- @deprecated
- Deprecated
(Since version 0.13.0) Use new API overloads with multiple parameters
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- JdbcReadOptions
- Serializable
- Product
- Equals
- JdbcIoOptions
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- Protected
Instance Constructors
- new JdbcReadOptions(connectionOptions: JdbcConnectionOptions, query: String, statementPreparator: (PreparedStatement) => Unit = null, rowMapper: (ResultSet) => T, fetchSize: Int = JdbcIO.ReadParam.BeamDefaultFetchSize, outputParallelization: Boolean = JdbcIO.ReadParam.DefaultOutputParallelization)
- connectionOptions
connection options
- query
query string
- statementPreparator
function to prepare a java.sql.PreparedStatement
- rowMapper
function to map from a SQL java.sql.ResultSet to
T
- fetchSize
use apache beam default fetch size if the value is -1
- outputParallelization
reshuffle result to distribute it to all workers. Default to true.
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- val connectionOptions: JdbcConnectionOptions
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- val fetchSize: Int
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- val outputParallelization: Boolean
- def productElementNames: Iterator[String]
- Definition Classes
- Product
- val query: String
- val rowMapper: (ResultSet) => T
- val statementPreparator: (PreparedStatement) => Unit
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()