Object

org.apache.spark.sql.sources

JdbcExtendedUtils

Related Doc: package sources

Permalink

object JdbcExtendedUtils extends Logging

Linear Supertypes
Logging, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. JdbcExtendedUtils
  2. Logging
  3. AnyRef
  4. 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. val DUMMY_TABLE_NAME: String

    Permalink
  5. val DUMMY_TABLE_QUALIFIED_NAME: String

    Permalink
  6. val EMPTY_SCHEMA: StructType

    Permalink
  7. val PREFIXES: Array[String]

    Permalink
  8. val SYSIBM_SCHEMA: String

    Permalink
  9. def addSplitProperty(value: String, propertyName: String, options: Map[String, String], threshold: Int): Map[String, String]

    Permalink
  10. final def asInstanceOf[T0]: T0

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

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  12. def createSchema(schemaName: String, conn: Connection, dialect: JdbcDialect): Unit

    Permalink
  13. def defaultPoolURL(session: SparkSession): String

    Permalink
  14. def dropTable(conn: Connection, tableName: String, dialect: JdbcDialect, context: SQLContext, ifExists: Boolean): Unit

    Permalink
  15. final def eq(arg0: AnyRef): Boolean

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

    Permalink
    Definition Classes
    AnyRef → Any
  17. def executeUpdate(sql: String, conn: Connection): Unit

    Permalink
  18. def fillColumnsClause(sql: StringBuilder, fields: Seq[String], escapeQuotes: Boolean = false, separator: String = " AND "): Unit

    Permalink

    Returns the SQL for creating the WHERE clause for a set of columns.

  19. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  20. def getCatalystType(dialect: JdbcDialect, jdbcType: Int, typeName: String, size: Int, scale: Int, md: MetadataBuilder, session: Option[SparkSession]): DataType

    Permalink
  21. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  22. def getInsertOrPutString(table: String, rddSchema: StructType, putInto: Boolean, escapeQuotes: Boolean = false): String

    Permalink

    Returns the SQL for prepare to insert or put rows into a table.

  23. def getJdbcType(dt: DataType, md: Metadata, dialect: JdbcDialect): JdbcType

    Permalink

    Get JdbcType for given DataType and Metadata.

  24. def getSQLDataType(dataType: DataType): DataType

    Permalink
    Annotations
    @tailrec()
  25. def getTableSchema(schemaName: String, tableName: String, conn: Connection, session: Option[SparkSession]): StructType

    Permalink
  26. def getTableWithSchema(table: String, conn: Connection, session: Option[SparkSession], forSpark: Boolean = true): (String, String)

    Permalink
  27. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  28. def initializeLogIfNecessary(): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  29. final def isDebugEnabled: Boolean

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  30. final def isInfoEnabled: Boolean

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  31. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  32. def isRowLevelSecurityEnabled(table: String, conn: Connection, dialect: JdbcDialect, context: SQLContext): Boolean

    Permalink
  33. def isSigned(typeId: Int): Boolean

    Permalink

    Is the given JDBC type (java.sql.Types) data type signed.

  34. final def isTraceEnabled: Boolean

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  35. final var levelFlags: Int

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  36. def log: Logger

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  37. def logDebug(msg: ⇒ String, throwable: Throwable): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  38. def logDebug(msg: ⇒ String): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  39. def logError(msg: ⇒ String, throwable: Throwable): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  40. def logError(msg: ⇒ String): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  41. def logInfo(msg: ⇒ String, throwable: Throwable): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  42. def logInfo(msg: ⇒ String): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  43. def logName: String

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  44. def logTrace(msg: ⇒ String, throwable: Throwable): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  45. def logTrace(msg: ⇒ String): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  46. def logWarning(msg: ⇒ String, throwable: Throwable): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  47. def logWarning(msg: ⇒ String): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  48. final var log_: Logger

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  49. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  50. def normalizeSchema(schema: StructType, forSpark: Boolean = true): StructType

    Permalink
  51. final def notify(): Unit

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

    Permalink
    Definition Classes
    AnyRef
  53. def quotedName(table: String, escapeQuotes: Boolean = false): String

    Permalink

    get the table name in SQL quoted form e.g.

    get the table name in SQL quoted form e.g. "APP"."TABLE1"

  54. def readSplitProperty(propertyName: String, options: Map[String, String]): Option[String]

    Permalink
  55. def resetLogger(): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  56. def schemaString(schema: StructType, dialect: JdbcDialect): String

    Permalink

    Compute the schema string for this RDD.

    Compute the schema string for this RDD. This is different from JdbcUtils.schemaString in having its own getJdbcType that can honour metadata for VARCHAR/CHAR types.

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

    Permalink
    Definition Classes
    AnyRef
  58. def tableExists(table: String, conn: Connection, dialect: JdbcDialect, context: SQLContext): Boolean

    Permalink

    Returns true if the table already exists in the JDBC database.

  59. def tableExistsInMetaData(schemaName: String, tableName: String, conn: Connection, skipType: String = ""): Boolean

    Permalink
  60. def toLowerCase(k: String): String

    Permalink
  61. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  62. def toUpperCase(k: String): String

    Permalink
  63. def truncateTable(conn: Connection, tableName: String, dialect: JdbcDialect): Unit

    Permalink
  64. final def wait(): Unit

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

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

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

Inherited from Logging

Inherited from AnyRef

Inherited from Any

Ungrouped