Class

org.apache.spark.sql.row

JDBCMutableRelation

Related Doc: package row

Permalink

case class JDBCMutableRelation(connProperties: ConnectionProperties, table: String, provider: String, mode: SaveMode, userSpecifiedString: String, parts: Array[Partition], origOptions: Map[String, String], sqlContext: SQLContext) extends BaseRelation with PrunedUnsafeFilteredScan with InsertableRelation with RowInsertableRelation with UpdatableRelation with DeletableRelation with DestroyRelation with IndexableRelation with internal.Logging with Product with Serializable

A LogicalPlan implementation for an external row table whose contents are retrieved using a JDBC URL or DataSource.

Linear Supertypes
Serializable, Serializable, Product, Equals, internal.Logging, IndexableRelation, DestroyRelation, DeletableRelation, UpdatableRelation, RowInsertableRelation, SingleRowInsertableRelation, InsertableRelation, PrunedUnsafeFilteredScan, BaseRelation, AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. JDBCMutableRelation
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. Logging
  7. IndexableRelation
  8. DestroyRelation
  9. DeletableRelation
  10. UpdatableRelation
  11. RowInsertableRelation
  12. SingleRowInsertableRelation
  13. InsertableRelation
  14. PrunedUnsafeFilteredScan
  15. BaseRelation
  16. AnyRef
  17. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new JDBCMutableRelation(connProperties: ConnectionProperties, table: String, provider: String, mode: SaveMode, userSpecifiedString: String, parts: Array[Partition], origOptions: Map[String, String], sqlContext: SQLContext)

    Permalink

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 buildUnsafeScan(requiredColumns: Array[String], filters: Array[Filter]): (RDD[Any], Seq[RDD[InternalRow]])

    Permalink
  6. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  7. final val connFactory: () ⇒ Connection

    Permalink
    Attributes
    protected
  8. val connProperties: ConnectionProperties

    Permalink
  9. def constructSQL(indexName: String, baseTable: String, indexColumns: Map[String, Option[SortDirection]], options: Map[String, String]): String

    Permalink
    Attributes
    protected
  10. def createIndex(indexIdent: QualifiedTableName, tableIdent: QualifiedTableName, indexColumns: Map[String, Option[SortDirection]], options: Map[String, String]): Unit

    Permalink

    Create an index on a table.

    Create an index on a table.

    indexIdent

    Index Identifier which goes in the catalog

    tableIdent

    Table identifier on which the index is created.

    indexColumns

    Columns on which the index has to be created with the direction of sorting. Direction can be specified as None.

    options

    Options for indexes. For e.g. column table index - ("COLOCATE_WITH"->"CUSTOMER"). row table index - ("INDEX_TYPE"->"GLOBAL HASH") or ("INDEX_TYPE"->"UNIQUE")

    Definition Classes
    JDBCMutableRelationIndexableRelation
  11. def createTable(mode: SaveMode): String

    Permalink
  12. def delete(filterExpr: String): Int

    Permalink

    Delete a set of row matching given criteria.

    Delete a set of row matching given criteria.

    filterExpr

    SQL WHERE criteria to select rows that will be deleted

    returns

    number of rows deleted

    Definition Classes
    JDBCMutableRelationDeletableRelation
  13. def destroy(ifExists: Boolean): Unit

    Permalink

    Destroy and cleanup this relation.

    Destroy and cleanup this relation. It may include, but not limited to, dropping the external table that this relation represents.

    Definition Classes
    JDBCMutableRelationDestroyRelation
  14. final def dialect: JdbcDialect

    Permalink
    Attributes
    protected
  15. val driver: String

    Permalink
  16. def dropIndex(indexIdent: QualifiedTableName, tableIdent: QualifiedTableName, ifExists: Boolean): Unit

    Permalink

    Drops an index on this table

    Drops an index on this table

    indexIdent

    Index identifier

    tableIdent

    Table identifier

    ifExists

    Drop if exists

    Definition Classes
    JDBCMutableRelationIndexableRelation
  17. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  18. def executeUpdate(sql: String): Int

    Permalink

    Execute a DML SQL and return the number of rows affected.

    Execute a DML SQL and return the number of rows affected.

    Definition Classes
    JDBCMutableRelationSingleRowInsertableRelation
  19. final lazy val executorConnector: () ⇒ Connection

    Permalink
  20. def finalize(): Unit

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

    Permalink
    Definition Classes
    AnyRef → Any
  22. def initializeLogIfNecessary(isInterpreter: Boolean): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  23. def insert(rows: Seq[Row]): Int

    Permalink

    Insert a sequence of rows into the table represented by this relation.

    Insert a sequence of rows into the table represented by this relation.

    rows

    the rows to be inserted

    returns

    number of rows inserted

    Definition Classes
    JDBCMutableRelationRowInsertableRelation
  24. def insert(data: DataFrame): Unit

    Permalink
  25. def insert(data: DataFrame, mode: SaveMode): Unit

    Permalink
  26. def insert(data: DataFrame, overwrite: Boolean): Unit

    Permalink
    Definition Classes
    JDBCMutableRelation → InsertableRelation
  27. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  28. def isTraceEnabled(): Boolean

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

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

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

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

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

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

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

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

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

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

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

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

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  41. val mode: SaveMode

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

    Permalink
    Definition Classes
    AnyRef
  43. val needConversion: Boolean

    Permalink
    Definition Classes
    JDBCMutableRelation → BaseRelation
  44. final def notify(): Unit

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

    Permalink
    Definition Classes
    AnyRef
  46. val origOptions: Map[String, String]

    Permalink
  47. val parts: Array[Partition]

    Permalink
  48. val provider: String

    Permalink
  49. final lazy val rowInsertStr: String

    Permalink
  50. final lazy val schema: StructType

    Permalink
    Definition Classes
    JDBCMutableRelation → BaseRelation
  51. final lazy val schemaFields: Map[String, StructField]

    Permalink
  52. def sizeInBytes: Long

    Permalink
    Definition Classes
    JDBCMutableRelation → BaseRelation
  53. val sqlContext: SQLContext

    Permalink
    Definition Classes
    JDBCMutableRelation → BaseRelation
  54. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  55. val table: String

    Permalink
  56. var tableExists: Boolean

    Permalink

    Return true if table already existed when the relation object was created.

    Return true if table already existed when the relation object was created.

    Definition Classes
    JDBCMutableRelationDestroyRelation
  57. var tableSchema: String

    Permalink
  58. def truncate(): Unit

    Permalink

    Truncate the table represented by this relation.

    Truncate the table represented by this relation.

    Definition Classes
    JDBCMutableRelationDestroyRelation
  59. def unhandledFilters(filters: Array[Filter]): Array[Filter]

    Permalink
    Definition Classes
    JDBCMutableRelation → BaseRelation
  60. def update(filterExpr: String, newColumnValues: Row, updateColumns: Seq[String]): Int

    Permalink

    Update a set of rows matching given criteria.

    Update a set of rows matching given criteria.

    filterExpr

    SQL WHERE criteria to select rows that will be updated

    newColumnValues

    updated values for the columns being changed; must match updateColumns

    updateColumns

    the columns to be updated; must match updatedColumns

    returns

    number of rows affected

    Definition Classes
    JDBCMutableRelationUpdatableRelation
  61. val userSpecifiedString: String

    Permalink
  62. final def wait(): Unit

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

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

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

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from internal.Logging

Inherited from IndexableRelation

Inherited from DestroyRelation

Inherited from DeletableRelation

Inherited from UpdatableRelation

Inherited from RowInsertableRelation

Inherited from InsertableRelation

Inherited from PrunedUnsafeFilteredScan

Inherited from BaseRelation

Inherited from AnyRef

Inherited from Any

Ungrouped