org.apache.spark.sql.execution.row

RowFormatRelation

class RowFormatRelation extends JDBCMutableRelation with PartitionedDataSourceScan with RowPutRelation

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

Linear Supertypes
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. RowFormatRelation
  2. RowPutRelation
  3. PartitionedDataSourceScan
  4. JDBCMutableRelation
  5. Logging
  6. IndexableRelation
  7. DestroyRelation
  8. DeletableRelation
  9. UpdatableRelation
  10. RowInsertableRelation
  11. SingleRowInsertableRelation
  12. InsertableRelation
  13. PrunedFilteredScan
  14. BaseRelation
  15. AnyRef
  16. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new RowFormatRelation(_connProperties: ConnectionProperties, _table: String, _provider: String, preservepartitions: Boolean, _mode: SaveMode, _userSpecifiedString: String, _parts: Array[Partition], _origOptions: Map[String, String], blockMap: Map[InternalDistributedMember, BlockManagerId], _context: SQLContext)

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 buildScan(requiredColumns: Array[String], filters: Array[sources.Filter]): RDD[Row]

    Definition Classes
    RowFormatRelationJDBCMutableRelation → PrunedFilteredScan
  8. def clone(): AnyRef

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

    Attributes
    protected
    Definition Classes
    JDBCMutableRelation
  10. val connProperties: ConnectionProperties

    Definition Classes
    JDBCMutableRelation
  11. lazy val connectionType: columnar.ConnectionType.Value

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

    Attributes
    protected
    Definition Classes
    RowFormatRelationJDBCMutableRelation
  13. def createIndex(indexIdent: QualifiedTableName, tableIdent: QualifiedTableName, indexColumns: Map[String, Option[SortDirection]], options: Map[String, String]): Unit

    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
  14. def createTable(mode: SaveMode): String

    Definition Classes
    JDBCMutableRelation
  15. def delete(filterExpr: String): Int

    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
  16. def destroy(ifExists: Boolean): Unit

    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
  17. final def dialect: JdbcDialect

    Attributes
    protected
    Definition Classes
    JDBCMutableRelation
  18. val driver: String

    Definition Classes
    JDBCMutableRelation
  19. def dropIndex(indexIdent: QualifiedTableName, tableIdent: QualifiedTableName, ifExists: Boolean): Unit

    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
  20. final def eq(arg0: AnyRef): Boolean

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

    Definition Classes
    AnyRef → Any
  22. def executeUpdate(sql: String): Int

    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
  23. final lazy val executorConnector: () ⇒ Connection

    Definition Classes
    JDBCMutableRelation
  24. def finalize(): Unit

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

    Definition Classes
    AnyRef → Any
  26. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  27. def insert(rows: Seq[Row]): Int

    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
  28. def insert(data: DataFrame): Unit

    Definition Classes
    JDBCMutableRelation
  29. def insert(data: DataFrame, mode: SaveMode): Unit

    Definition Classes
    JDBCMutableRelation
  30. def insert(data: DataFrame, overwrite: Boolean): Unit

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

    Definition Classes
    Any
  32. def isTraceEnabled(): Boolean

    Attributes
    protected
    Definition Classes
    Logging
  33. def log: Logger

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

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

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

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

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

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

    Attributes
    protected
    Definition Classes
    Logging
  40. def logName: String

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

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

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

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

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

    Definition Classes
    AnyRef
  46. val needConversion: Boolean

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

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

    Definition Classes
    AnyRef
  49. lazy val numPartitions: Int

    We need to set num partitions just to cheat Exchange of Spark.

    We need to set num partitions just to cheat Exchange of Spark. This partition is not used for actual scan operator which depends on the actual RDD. Spark ClusteredDistribution is pretty simplistic to consider numShufflePartitions for its partitioning scheme as Spark always uses shuffle. Ideally it should consider child Spark plans partitioner.

    Definition Classes
    RowFormatRelationPartitionedDataSourceScan
  50. val origOptions: Map[String, String]

    Definition Classes
    JDBCMutableRelation
  51. def partitionColumns: Seq[String]

  52. val parts: Array[Partition]

    Definition Classes
    JDBCMutableRelation
  53. val provider: String

    Definition Classes
    JDBCMutableRelation
  54. def put(rows: Seq[Row]): Int

    If the row is already present, it gets updated otherwise it gets inserted into the table represented by this relation

    If the row is already present, it gets updated otherwise it gets inserted into the table represented by this relation

    rows

    the rows to be upserted

    returns

    number of rows upserted

    Definition Classes
    RowFormatRelationRowPutRelation
  55. def put(data: DataFrame): Unit

    If the row is already present, it gets updated otherwise it gets inserted into the table represented by this relation

    If the row is already present, it gets updated otherwise it gets inserted into the table represented by this relation

    data

    the DataFrame to be upserted

    returns

    number of rows upserted

    Definition Classes
    RowFormatRelationRowPutRelation
  56. final lazy val putStr: String

  57. final lazy val rowInsertStr: String

    Definition Classes
    JDBCMutableRelation
  58. final lazy val schema: StructType

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

    Definition Classes
    JDBCMutableRelation
  60. def sizeInBytes: Long

    Definition Classes
    JDBCMutableRelation → BaseRelation
  61. val sqlContext: SQLContext

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

    Definition Classes
    AnyRef
  63. val table: String

    Definition Classes
    JDBCMutableRelation
  64. var tableSchema: String

    Definition Classes
    JDBCMutableRelation
  65. def toString(): String

    Definition Classes
    RowFormatRelation → AnyRef → Any
  66. def truncate(): Unit

    Truncate the table represented by this relation.

    Truncate the table represented by this relation.

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

    Definition Classes
    BaseRelation
  68. def update(filterExpr: String, newColumnValues: Row, updateColumns: Seq[String]): Int

    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
  69. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from RowPutRelation

Inherited from PartitionedDataSourceScan

Inherited from JDBCMutableRelation

Inherited from Logging

Inherited from IndexableRelation

Inherited from DestroyRelation

Inherited from DeletableRelation

Inherited from UpdatableRelation

Inherited from RowInsertableRelation

Inherited from InsertableRelation

Inherited from PrunedFilteredScan

Inherited from BaseRelation

Inherited from AnyRef

Inherited from Any

Ungrouped