Class/Object

com.qubole.spark.hiveacid

HiveAcidTable

Related Docs: object HiveAcidTable | package hiveacid

Permalink

class HiveAcidTable extends Logging with Closeable

Represents a hive acid table and exposes API to perform operations on top of it

Annotations
@Evolving()
Linear Supertypes
Closeable, AutoCloseable, Logging, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. HiveAcidTable
  2. Closeable
  3. AutoCloseable
  4. Logging
  5. AnyRef
  6. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new HiveAcidTable(sparkSession: SparkSession, hiveAcidMetadata: HiveAcidMetadata, parameters: Map[String, String])

    Permalink

    sparkSession

    - spark session object

    hiveAcidMetadata

    - metadata object

    parameters

    - additional parameters

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 addBatch(df: DataFrame): Long

    Permalink

    Used by streaming query to add a datframe to hive acid table.

    Used by streaming query to add a datframe to hive acid table.

    df

    - dataframe to insert

    returns

    - transaction Id

  5. final def asInstanceOf[T0]: T0

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

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  7. def close(): Unit

    Permalink
    Definition Classes
    HiveAcidTable → Closeable → AutoCloseable
  8. def delete(condition: Column): Unit

    Permalink

    Delete rows from the table based on condtional expression.

    Delete rows from the table based on condtional expression.

    Note: This API is transactional in nature.

    condition

    - Boolean SQL Expression filtering rows to be deleted

    Annotations
    @Evolving()
  9. def delete(condition: String): Unit

    Permalink

    Delete rows from the table based on condtional boolean expression.

    Delete rows from the table based on condtional boolean expression.

    Note: This API is transactional in nature.

    condition

    - Boolean SQL Expression filtering rows to be deleted

    Annotations
    @Evolving()
  10. def endTxn(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  13. def finalize(): Unit

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

    Permalink
    Definition Classes
    AnyRef → Any
  15. def getRdd(requiredColumns: Array[String], filters: Array[Filter], readConf: SparkAcidConf): RDD[Row]

    Permalink

    Return an RDD on top of Hive ACID table

    Return an RDD on top of Hive ACID table

    requiredColumns

    - columns needed

    filters

    - filters that can be pushed down to file format

    readConf

    - read conf

    Annotations
    @Evolving()
  16. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  17. val hiveAcidMetadata: HiveAcidMetadata

    Permalink

    - metadata object

  18. var htw: HiveTxnWrapper

    Permalink
  19. def initializeLogIfNecessary(isInterpreter: Boolean, silent: Boolean): Boolean

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  20. def initializeLogIfNecessary(isInterpreter: Boolean): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  21. def insertInto(df: DataFrame, statementId: Option[Int] = None): Unit

    Permalink

    Appends a given dataframe df into the hive acid table

    Appends a given dataframe df into the hive acid table

    Note: This API is transactional in nature.

    df

    - dataframe to insert

    statementId

    Optional. In a same transaction, multiple statements like INSERT/UPDATE/DELETE (like in case of MERGE) can be issued. statementId has to be different for them to ensure delta collision is avoided for them during writes.

  22. def insertOverwrite(df: DataFrame, statementId: Option[Int] = None): Unit

    Permalink

    Overwrites a given dataframe df onto the hive acid table

    Overwrites a given dataframe df onto the hive acid table

    Note: This API is transactional in nature.

    df

    - dataframe to insert

    statementId

    Optional. In a same transaction, multiple statements like INSERT/UPDATE/DELETE (like in case of MERGE) can be issued. statementId has to be different for them to ensure delta collision is avoided for them during writes.

  23. def isBucketed: Boolean

    Permalink
  24. def isFullAcidTable: Boolean

    Permalink
  25. def isInsertOnlyTable: Boolean

    Permalink

    Returns true if the table is an insert only table

  26. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  27. def isPartitioned: Boolean

    Permalink
  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. def merge(sourceDf: DataFrame, mergeExpression: Expression, matchedClause: Seq[MergeWhenClause], notMatched: Option[MergeWhenNotInsert], sourceAlias: Option[AliasIdentifier], targetAlias: Option[AliasIdentifier]): Unit

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

    Permalink
    Definition Classes
    AnyRef
  43. final def notify(): Unit

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

    Permalink
    Definition Classes
    AnyRef
  45. val parameters: Map[String, String]

    Permalink

    - additional parameters

  46. def readDF(withRowId: Boolean): DataFrame

    Permalink

    Create dataframe to read based on hiveAcidTable and passed in filter.

    Create dataframe to read based on hiveAcidTable and passed in filter.

    returns

    Dataframe

  47. val sparkSession: SparkSession

    Permalink

    - spark session object

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

    Permalink
    Definition Classes
    AnyRef
  49. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  50. def update(condition: Option[Column], newValues: Map[String, Column]): Unit

    Permalink

    Update rows in the hive acid table based on condition and newValues

    Update rows in the hive acid table based on condition and newValues

    Note: This API is transactional in nature.

    condition

    - Optional condition string to identify rows which needs to be updated, if not specified then it means complete table.

    newValues

    - Map of (column, value) to set

    Annotations
    @Evolving()
  51. def update(condition: Option[String], newValues: Map[String, String]): Unit

    Permalink

    Update rows in the hive acid table based on condition and newValues

    Update rows in the hive acid table based on condition and newValues

    Note: This API is transactional in nature.

    condition

    - condition string to identify rows which needs to be updated

    newValues

    - Map of (column, value) to set

    Annotations
    @Evolving()
  52. final def wait(): Unit

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

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

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

Inherited from Closeable

Inherited from AutoCloseable

Inherited from Logging

Inherited from AnyRef

Inherited from Any

Ungrouped