Class

org.apache.spark.sql.execution.row

RowFormatRelation

Related Doc: package row

Permalink

class RowFormatRelation extends JDBCMutableRelation with PartitionedDataSourceScan with RowPutRelation with ParentRelation with DependentRelation

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. DependentRelation
  3. ParentRelation
  4. RowPutRelation
  5. PartitionedDataSourceScan
  6. JDBCMutableRelation
  7. Serializable
  8. Serializable
  9. Product
  10. Equals
  11. Logging
  12. NativeTableRowLevelSecurityRelation
  13. RowLevelSecurityRelation
  14. AlterableRelation
  15. IndexableRelation
  16. DeletableRelation
  17. UpdatableRelation
  18. MutableRelation
  19. RowInsertableRelation
  20. SingleRowInsertableRelation
  21. PlanInsertableRelation
  22. DestroyRelation
  23. InsertableRelation
  24. PrunedUnsafeFilteredScan
  25. BaseRelation
  26. AnyRef
  27. Any
  1. Hide All
  2. Show All
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], _context: 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. def addDependent(dependent: DependentRelation, catalog: SnappyStoreHiveCatalog): Boolean

    Permalink

    Used by DependentRelations to register with parent

    Used by DependentRelations to register with parent

    Definition Classes
    RowFormatRelationParentRelation
  5. def alterTable(tableIdent: QualifiedTableName, isAddColumn: Boolean, column: StructField): Unit

    Permalink

    Alter's table schema by adding or dropping a provided column

    Alter's table schema by adding or dropping a provided column

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

    Permalink
    Definition Classes
    Any
  7. def baseTable: Option[String]

    Permalink

    Base table of this relation.

    Base table of this relation.

    Definition Classes
    RowFormatRelationDependentRelation
  8. def buildUnsafeScan(requiredColumns: Array[String], filters: Array[Expression]): (RDD[Any], Seq[RDD[InternalRow]])

    Permalink
  9. def clone(): AnyRef

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

    Permalink
    Attributes
    protected
    Definition Classes
    JDBCMutableRelationNativeTableRowLevelSecurityRelation
  11. val connProperties: ConnectionProperties

    Permalink
    Definition Classes
    JDBCMutableRelation
  12. val connectionType: columnar.ConnectionType.Value

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

    Permalink
    Attributes
    protected
    Definition Classes
    RowFormatRelationJDBCMutableRelation
  14. 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
  15. def createTable(mode: SaveMode): String

    Permalink
    Definition Classes
    JDBCMutableRelation
  16. 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
  17. 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
  18. final def dialect: JdbcDialect

    Permalink
    Attributes
    protected
    Definition Classes
    JDBCMutableRelationNativeTableRowLevelSecurityRelation
  19. val driver: String

    Permalink
    Definition Classes
    JDBCMutableRelation
  20. 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
  21. def enableOrDisableRowLevelSecurity(tableIdent: QualifiedTableName, enableRowLevelSecurity: Boolean): Unit

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

    Permalink
    Definition Classes
    AnyRef
  23. def executeUpdate(sql: String, defaultSchema: 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
  24. def finalize(): Unit

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

    Permalink
    Definition Classes
    AnyRef → Any
  26. def getDeletePlan(relation: LogicalRelation, child: SparkPlan, keyColumns: Seq[Attribute]): SparkPlan

    Permalink

    Get a spark plan to delete rows the relation.

    Get a spark plan to delete rows the relation. The result of SparkPlan execution should be a count of number of updated rows.

    Definition Classes
    JDBCMutableRelationMutableRelation
  27. def getDependents(catalog: SnappyStoreHiveCatalog): Seq[String]

    Permalink

    Get the dependent child.

    Get the dependent child.

    Definition Classes
    RowFormatRelationParentRelation
  28. def getInsertPlan(relation: LogicalRelation, child: SparkPlan): SparkPlan

    Permalink

    Get a spark plan for insert.

    Get a spark plan for insert. The result of SparkPlan execution should be a count of number of inserted rows.

    Definition Classes
    JDBCMutableRelationPlanInsertableRelation
  29. def getKeyColumns: Seq[String]

    Permalink

    Get the "key" columns for the table that need to be projected out by UPDATE and DELETE operations for affecting the selected rows.

    Get the "key" columns for the table that need to be projected out by UPDATE and DELETE operations for affecting the selected rows.

    Definition Classes
    JDBCMutableRelationMutableRelation
  30. def getPrimaryKeyColumns: Seq[String]

    Permalink

    Get primary keys of the row table

    Get primary keys of the row table

    Definition Classes
    JDBCMutableRelationMutableRelation
  31. def getPutPlan(relation: LogicalRelation, child: SparkPlan): SparkPlan

    Permalink

    Get a spark plan for puts.

    Get a spark plan for puts. If the row is already present, it gets updated otherwise it gets inserted into the table represented by this relation. The result of SparkPlan execution should be a count of number of rows put.

    Definition Classes
    RowFormatRelationRowPutRelation
  32. def getUpdatePlan(relation: LogicalRelation, child: SparkPlan, updateColumns: Seq[Attribute], updateExpressions: Seq[Expression], keyColumns: Seq[Attribute]): SparkPlan

    Permalink

    Get a spark plan to update rows in the relation.

    Get a spark plan to update rows in the relation. The result of SparkPlan execution should be a count of number of updated rows.

    Definition Classes
    JDBCMutableRelationMutableRelation
  33. def initializeLogIfNecessary(): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  34. 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
  35. def insert(data: DataFrame, overwrite: Boolean): Unit

    Permalink
    Definition Classes
    JDBCMutableRelation → InsertableRelation
  36. final def isDebugEnabled: Boolean

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

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

    Permalink
    Definition Classes
    Any
  39. lazy val isPartitioned: Boolean

    Permalink
  40. def isRowLevelSecurityEnabled: Boolean

    Permalink
  41. final def isTraceEnabled: Boolean

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    Permalink
    Definition Classes
    JDBCMutableRelation
  57. def name: String

    Permalink

    Name of this relation in the catalog.

    Name of this relation in the catalog.

    Definition Classes
    RowFormatRelationDependentRelation
  58. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  59. val needConversion: Boolean

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

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

    Permalink
    Definition Classes
    AnyRef
  62. lazy val numBuckets: Int

    Permalink
  63. val origOptions: Map[String, String]

    Permalink
    Definition Classes
    JDBCMutableRelation
  64. lazy val partitionColumns: Seq[String]

    Permalink

    Get the partitioning columns for the table, if any.

    Get the partitioning columns for the table, if any.

    Definition Classes
    RowFormatRelationPartitionedDataSourceScanJDBCMutableRelationMutableRelation
  65. def partitionExpressions(relation: LogicalRelation): Seq[Expression]

    Permalink
    Definition Classes
    RowFormatRelationJDBCMutableRelation
  66. val parts: Array[Partition]

    Permalink
    Definition Classes
    JDBCMutableRelation
  67. val provider: String

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

    Permalink

    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
  69. def recoverDependentRelations(properties: Map[String, String]): Unit

    Permalink

    Recover/Re-create the dependent child relations.

    Recover/Re-create the dependent child relations. This callback is to recreate Dependent relations when the ParentRelation is being created.

    Definition Classes
    RowFormatRelationParentRelation
  70. lazy val region: LocalRegion

    Permalink
  71. def removeDependent(dependent: DependentRelation, catalog: SnappyStoreHiveCatalog): Boolean

    Permalink

    Used by DependentRelations to unregister with parent

    Used by DependentRelations to unregister with parent

    Definition Classes
    RowFormatRelationParentRelation
  72. def resetLogger(): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  73. def resolvedName: String

    Permalink
  74. final lazy val rowInsertStr: String

    Permalink
    Definition Classes
    JDBCMutableRelation
  75. final lazy val schema: StructType

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

    Permalink
    Definition Classes
    JDBCMutableRelation
  77. def sizeInBytes: Long

    Permalink
    Definition Classes
    RowFormatRelationJDBCMutableRelation → BaseRelation
  78. val sqlContext: SQLContext

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

    Permalink
    Definition Classes
    AnyRef
  80. val table: String

    Permalink

    Name of this mutable table as stored in catalog.

    Name of this mutable table as stored in catalog.

    Definition Classes
    JDBCMutableRelationNativeTableRowLevelSecurityRelationMutableRelation
  81. var tableCreated: Boolean

    Permalink

    Return true if table is created by the relation.

    Return true if table is created by the relation. This will be used to check while destroying the table incase of a failure while creating the table

    Definition Classes
    JDBCMutableRelationDestroyRelation
  82. 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
  83. def toString(): String

    Permalink
    Definition Classes
    RowFormatRelationJDBCMutableRelation → AnyRef → Any
  84. def truncate(): Unit

    Permalink

    Truncate the table represented by this relation.

    Truncate the table represented by this relation.

    Definition Classes
    JDBCMutableRelationDestroyRelation
  85. def unhandledFilters(filters: Seq[Expression]): Seq[Expression]

    Permalink

    Returns the list of Expressions that this datasource may not be able to handle.

    Returns the list of Expressions that this datasource may not be able to handle. By default, this function will return all filters, as it is always safe to double evaluate an Expression.

    Definition Classes
    RowFormatRelationJDBCMutableRelationPrunedUnsafeFilteredScan
  86. def unhandledFilters(filters: Array[Filter]): Array[Filter]

    Permalink
    Definition Classes
    BaseRelation
  87. 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
  88. val userSpecifiedString: String

    Permalink
    Definition Classes
    JDBCMutableRelation
  89. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  92. def withKeyColumns(relation: LogicalRelation, keyColumns: Seq[String]): LogicalRelation

    Permalink

    If required inject the key columns in the original relation.

    If required inject the key columns in the original relation.

    Definition Classes
    MutableRelation

Inherited from DependentRelation

Inherited from ParentRelation

Inherited from RowPutRelation

Inherited from PartitionedDataSourceScan

Inherited from JDBCMutableRelation

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from Logging

Inherited from RowLevelSecurityRelation

Inherited from AlterableRelation

Inherited from IndexableRelation

Inherited from DeletableRelation

Inherited from UpdatableRelation

Inherited from MutableRelation

Inherited from RowInsertableRelation

Inherited from PlanInsertableRelation

Inherited from DestroyRelation

Inherited from InsertableRelation

Inherited from PrunedUnsafeFilteredScan

Inherited from BaseRelation

Inherited from AnyRef

Inherited from Any

Ungrouped