unicredit.spark.hbase

HBaseUtils

trait HBaseUtils extends AnyRef

Utilities for dealing with HBase tables

Linear Supertypes
AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. HBaseUtils
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

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 clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  8. def computeSplits(rdd: RDD[String], regionsCount: Int): Seq[String]

    Given a RDD of keys and the number of requested table's regions, returns an array of keys that are start keys of the table's regions.

    Given a RDD of keys and the number of requested table's regions, returns an array of keys that are start keys of the table's regions. The array length is regionsCount-1 since the start key of the first region is not needed (since it does not determine a split)

    rdd

    RDD of strings representing row keys

    regionsCount

    number of regions

    returns

    a sorted sequence of start keys

  9. def createTable(tableName: String, family: String, splitKeys: Seq[String])(implicit config: HBaseConfig): Unit

    Creates a table (if it doesn't exist already) with a column family and made of one or more regions

    Creates a table (if it doesn't exist already) with a column family and made of one or more regions

    tableName

    name of the table

    family

    name of the column family

    splitKeys

    ordered list of keys that defines region splits

  10. def createTable(tableName: String, families: String*)(implicit config: HBaseConfig): Unit

    Creates a table (if it doesn't exist already) with one or more column families

    Creates a table (if it doesn't exist already) with one or more column families

    tableName

    name of the table

    families

    list of one or more column families

  11. def createTable(tableName: String, families: Seq[String], splitKeys: Seq[String])(implicit config: HBaseConfig): Unit

    Creates a table (if it doesn't exist already) with one or more column families and made of one or more regions

    Creates a table (if it doesn't exist already) with one or more column families and made of one or more regions

    tableName

    name of the table

    families

    list of column families

    splitKeys

    ordered list of keys that defines region splits

  12. final def eq(arg0: AnyRef): Boolean

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

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

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

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

    Definition Classes
    AnyRef → Any
  17. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  18. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  19. final def notify(): Unit

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

    Definition Classes
    AnyRef
  21. def snapshot(tableName: String, snapshotName: String)(implicit config: HBaseConfig): Unit

    Takes a snapshot of the table

    Takes a snapshot of the table

    tableName

    name of the table

    snapshotName

    name of the snapshot

  22. def snapshot(tableName: String)(implicit config: HBaseConfig): Unit

    Takes a snapshot of the table, the snapshot's name has format "tableName_yyyyMMddHHmmss"

    Takes a snapshot of the table, the snapshot's name has format "tableName_yyyyMMddHHmmss"

    tableName

    name of the table

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

    Definition Classes
    AnyRef
  24. def tableExists(tableName: String, cFamily: String)(implicit config: HBaseConfig): Boolean

    Checks if table exists, and requires that it contains the desired column family

    Checks if table exists, and requires that it contains the desired column family

    tableName

    name of the table

    cFamily

    name of the column family

    returns

    true if table exists, false otherwise

  25. def toString(): String

    Definition Classes
    AnyRef → Any
  26. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped