Class/Object

org.apache.spark.sql.execution.columnar.impl

ColumnFormatRelation

Related Docs: object ColumnFormatRelation | package impl

Permalink

class ColumnFormatRelation extends BaseColumnFormatRelation with ParentRelation with DependentRelation with BulkPutRelation

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ColumnFormatRelation
  2. BulkPutRelation
  3. DependentRelation
  4. ParentRelation
  5. BaseColumnFormatRelation
  6. MutableRelation
  7. RowInsertableRelation
  8. SingleRowInsertableRelation
  9. PartitionedDataSourceScan
  10. JDBCAppendableRelation
  11. Product
  12. Equals
  13. Serializable
  14. Serializable
  15. Logging
  16. IndexableRelation
  17. PlanInsertableRelation
  18. DestroyRelation
  19. InsertableRelation
  20. PrunedUnsafeFilteredScan
  21. BaseRelation
  22. AnyRef
  23. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new ColumnFormatRelation(_table: String, _provider: String, _mode: SaveMode, _userSchema: StructType, _schemaExtensions: String, _ddlExtensionForShadowTable: String, _origOptions: Map[String, String], _externalStore: ExternalStore, _partitioningColumns: Seq[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
    ColumnFormatRelationParentRelation
  5. final def asInstanceOf[T0]: T0

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

    Permalink

    Base table of this relation.

    Base table of this relation.

    Definition Classes
    ColumnFormatRelationDependentRelation
  7. def buildRowBufferRDD(partitionEvaluator: () ⇒ Array[Partition], requiredColumns: Array[String], filters: Array[Filter], useResultSet: Boolean): RDD[Any]

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

    Permalink
  9. def buildUnsafeScanForSampledRelation(requiredColumns: Array[String], filters: Array[Filter]): (RDD[Any], RDD[Any], Seq[RDD[InternalRow]])

    Permalink
    Definition Classes
    BaseColumnFormatRelation
  10. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  11. lazy val clusterMode: ClusterMode

    Permalink
    Definition Classes
    BaseColumnFormatRelation
  12. final val connFactory: () ⇒ Connection

    Permalink
    Attributes
    protected
    Definition Classes
    JDBCAppendableRelation
  13. final val connProperties: ConnectionProperties

    Permalink
    Attributes
    protected
    Definition Classes
    JDBCAppendableRelation
  14. val connectionType: ConnectionType.Value

    Permalink
  15. def createExternalTableForColumnBatches(tableName: String, externalStore: ExternalStore): Unit

    Permalink

    Table definition: create table columnTable ( id varchar(36) not null, partitionId integer, numRows integer not null, data blob) For a table with n columns, there will be n+1 region entries.

    Table definition: create table columnTable ( id varchar(36) not null, partitionId integer, numRows integer not null, data blob) For a table with n columns, there will be n+1 region entries. A base entry and one entry each for a column. The data column for the base entry will contain the stats. id for the base entry would be the uuid while for column entries it would be uuid_colName.

    Definition Classes
    BaseColumnFormatRelationJDBCAppendableRelation
  16. 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
    ColumnFormatRelationJDBCAppendableRelationIndexableRelation
  17. def createTable(mode: SaveMode): Unit

    Permalink
  18. def createTable(externalStore: ExternalStore, tableStr: String, tableName: String, dropIfExists: Boolean): Unit

    Permalink
    Definition Classes
    JDBCAppendableRelation
  19. val ddlExtensionForShadowTable: String

    Permalink
    Definition Classes
    BaseColumnFormatRelation
  20. var delayRollover: Boolean

    Permalink
    Attributes
    protected
    Definition Classes
    JDBCAppendableRelation
  21. 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
    BaseColumnFormatRelationJDBCAppendableRelationDestroyRelation
  22. final def dialect: JdbcDialect

    Permalink
    Attributes
    protected
    Definition Classes
    JDBCAppendableRelation
  23. 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
    ColumnFormatRelationJDBCAppendableRelationIndexableRelation
  24. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  25. 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
    BaseColumnFormatRelationSingleRowInsertableRelation
  26. val externalStore: ExternalStore

    Permalink
    Definition Classes
    JDBCAppendableRelation
  27. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  28. def flushRowBuffer(): Unit

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

    Permalink
    Definition Classes
    AnyRef → Any
  30. def getColumnBatchParams: (Int, Int, String)

    Permalink
    Definition Classes
    JDBCAppendableRelation
  31. def getColumnBatchStatistics(schema: Seq[AttributeReference]): PartitionStatistics

    Permalink
    Definition Classes
    BaseColumnFormatRelation
  32. def getCompressionCodec: String

    Permalink
    Definition Classes
    JDBCAppendableRelation
  33. 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
    BaseColumnFormatRelationMutableRelation
  34. def getDependents(catalog: SnappyStoreHiveCatalog): Seq[String]

    Permalink

    Get the dependent child.

    Get the dependent child.

    Definition Classes
    ColumnFormatRelationParentRelation
  35. 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
    BaseColumnFormatRelationJDBCAppendableRelationPlanInsertableRelation
  36. 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
    BaseColumnFormatRelationMutableRelation
  37. def getPutKeys(): Option[Seq[String]]

    Permalink
    Definition Classes
    ColumnFormatRelationBulkPutRelation
  38. def getPutPlan(insertPlan: SparkPlan, updatePlan: 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
    ColumnFormatRelationBulkPutRelation
  39. 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
    BaseColumnFormatRelationMutableRelation
  40. def initializeLogIfNecessary(): Unit

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

    Permalink
    Definition Classes
    JDBCAppendableRelation → InsertableRelation
  43. final def isDebugEnabled: Boolean

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

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

    Permalink
    Definition Classes
    Any
  46. lazy val isPartitioned: Boolean

    Permalink
  47. final def isTraceEnabled: Boolean

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

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

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

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

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

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

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

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

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

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

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

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

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

    Permalink
    Definition Classes
    JDBCAppendableRelation
  61. def name: String

    Permalink

    Name of this relation in the catalog.

    Name of this relation in the catalog.

    Definition Classes
    ColumnFormatRelationDependentRelation
  62. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  63. val needConversion: Boolean

    Permalink
    Definition Classes
    JDBCAppendableRelation → BaseRelation
  64. final def notify(): Unit

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

    Permalink
    Definition Classes
    AnyRef
  66. lazy val numBuckets: Int

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

    Permalink
    Definition Classes
    JDBCAppendableRelation
  68. def partitionColumns: Seq[String]

    Permalink

    Get the partitioning columns for the table, if any.

    Get the partitioning columns for the table, if any.

    Definition Classes
    BaseColumnFormatRelationMutableRelationPartitionedDataSourceScan
  69. val partitioningColumns: Seq[String]

    Permalink
    Definition Classes
    BaseColumnFormatRelation
  70. val provider: String

    Permalink
    Definition Classes
    JDBCAppendableRelation
  71. 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
    ColumnFormatRelationParentRelation
  72. lazy val region: PartitionedRegion

    Permalink
  73. lazy val relInfo: RelationInfo

    Permalink
    Definition Classes
    BaseColumnFormatRelation
  74. def removeDependent(dependent: DependentRelation, catalog: SnappyStoreHiveCatalog): Boolean

    Permalink

    Used by DependentRelations to unregister with parent

    Used by DependentRelations to unregister with parent

    Definition Classes
    ColumnFormatRelationParentRelation
  75. def resetLogger(): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  76. val resolvedName: String

    Permalink
    Definition Classes
    JDBCAppendableRelation
  77. lazy val rowInsertStr: String

    Permalink
    Definition Classes
    BaseColumnFormatRelation
  78. def scanTable(tableName: String, requiredColumns: Array[String], filters: Array[Filter], _ignore: ⇒ Int): RDD[Any]

    Permalink
  79. val schema: StructType

    Permalink
    Definition Classes
    JDBCAppendableRelation → BaseRelation
  80. val schemaExtensions: String

    Permalink
    Definition Classes
    BaseColumnFormatRelation
  81. def sizeInBytes: Long

    Permalink
    Definition Classes
    JDBCAppendableRelation → BaseRelation
  82. val sqlContext: SQLContext

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

    Permalink
    Definition Classes
    AnyRef
  84. val table: String

    Permalink
    Definition Classes
    JDBCAppendableRelation
  85. 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
    JDBCAppendableRelationDestroyRelation
  86. val tableOptions: CaseInsensitiveMutableHashMap[String]

    Permalink
  87. def toString(): String

    Permalink
    Definition Classes
    BaseColumnFormatRelationJDBCAppendableRelation → AnyRef → Any
  88. def truncate(): Unit

    Permalink

    Truncate the table represented by this relation.

    Truncate the table represented by this relation.

    Definition Classes
    BaseColumnFormatRelationJDBCAppendableRelationDestroyRelation
  89. def unhandledFilters(filters: Array[Filter]): Array[Filter]

    Permalink
    Definition Classes
    BaseRelation
  90. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  93. 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
    ColumnFormatRelationMutableRelation

Inherited from BulkPutRelation

Inherited from DependentRelation

Inherited from ParentRelation

Inherited from BaseColumnFormatRelation

Inherited from MutableRelation

Inherited from RowInsertableRelation

Inherited from PartitionedDataSourceScan

Inherited from JDBCAppendableRelation

Inherited from Product

Inherited from Equals

Inherited from Serializable

Inherited from Serializable

Inherited from Logging

Inherited from IndexableRelation

Inherited from PlanInsertableRelation

Inherited from DestroyRelation

Inherited from InsertableRelation

Inherited from PrunedUnsafeFilteredScan

Inherited from BaseRelation

Inherited from AnyRef

Inherited from Any

Ungrouped