unicredit.spark

hbase

package hbase

Linear Supertypes
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. hbase
  2. HBaseUtils
  3. HFileSupport
  4. HBaseReadSupport
  5. HBaseWriteSupport
  6. AnyRef
  7. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Type Members

  1. trait Formats[A] extends Reads[A] with Writes[A]

  2. class HBaseConfig extends Serializable

    Wrapper for HBaseConfiguration

  3. final class HBaseRDD[A] extends HBaseWriteHelpers[A] with Serializable

  4. final class HBaseRDDFixed[A] extends HBaseWriteHelpers[A] with Serializable

  5. final class HBaseRDDSimple[A] extends HBaseWriteHelpers[A] with Serializable

  6. trait HBaseReadSupport extends AnyRef

    Adds implicit methods to SparkContext to read from HBase sources.

  7. final class HBaseSC extends Serializable

  8. trait HBaseUtils extends AnyRef

    Utilities for dealing with HBase tables

  9. sealed abstract class HBaseWriteHelpers[A] extends AnyRef

  10. trait HBaseWriteSupport extends AnyRef

    Adds implicit methods to RDD[(String, Map[String, A])], RDD[(String, Seq[A])] and RDD[(String, Map[String, Map[String, A]])] to write to HBase sources.

  11. final class HFileMapRDD[A] extends HFileRDD

  12. sealed abstract class HFileRDD extends Serializable

  13. final class HFileSeqRDD[A] extends HFileRDD

  14. trait HFileSupport extends AnyRef

  15. case class KeyDuplicatedException(key: String) extends Exception with Product with Serializable

  16. type KeyValueWrapper[A] = (Array[Byte], Array[Byte], Array[Byte], A) ⇒ KeyValue

    Definition Classes
    HFileSupport
  17. type PutAdder[A] = (Put, Array[Byte], Array[Byte], A) ⇒ Unit

    Definition Classes
    HBaseWriteSupport
  18. trait Reads[A] extends Serializable

    An instance of Reads[A] testifies that Array[Byte] can be converted to A.

  19. trait Writes[A] extends Serializable

    An instance of Writes[A] testifies that A can be converted to Array[Byte].

Value Members

  1. object HBaseConfig extends Serializable

    Factories to generate HBaseConfig instances.

  2. implicit val byteArrayReader: Reads[Array[Byte]]

    Definition Classes
    HBaseReadSupport
  3. implicit val byteArrayWriter: Writes[Array[Byte]]

    Definition Classes
    HBaseWriteSupport
  4. 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

    Definition Classes
    HBaseUtils
  5. 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

    Definition Classes
    HBaseUtils
  6. 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

    Definition Classes
    HBaseUtils
  7. 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

    Definition Classes
    HBaseUtils
  8. implicit val jsonReader: Reads[JValue]

    Definition Classes
    HBaseReadSupport
  9. implicit val jsonWriter: Writes[JValue]

    Definition Classes
    HBaseWriteSupport
  10. implicit def mapRddToHFileRdd[A](rdd: RDD[(String, Map[String, A])])(implicit writer: Writes[A]): HFileMapRDD[A]

    Definition Classes
    HFileSupport
  11. implicit def mapRddToHFileRddT[A](rdd: RDD[(String, Map[String, (A, Long)])])(implicit writer: Writes[A]): HFileMapRDD[(A, Long)]

    Definition Classes
    HFileSupport
  12. implicit def seqRddToHFileRdd[A](rdd: RDD[(String, Seq[A])])(implicit writer: Writes[A]): HFileSeqRDD[A]

    Definition Classes
    HFileSupport
  13. implicit def seqRddToHFileRddT[A](rdd: RDD[(String, Seq[(A, Long)])])(implicit writer: Writes[A]): HFileSeqRDD[(A, Long)]

    Definition Classes
    HFileSupport
  14. 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

    Definition Classes
    HBaseUtils
  15. 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

    Definition Classes
    HBaseUtils
  16. implicit val stringReader: Reads[String]

    Definition Classes
    HBaseReadSupport
  17. implicit val stringWriter: Writes[String]

    Definition Classes
    HBaseWriteSupport
  18. 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

    Definition Classes
    HBaseUtils
  19. implicit def toHBaseRDD[A](rdd: RDD[(String, Map[String, Map[String, A]])])(implicit writer: Writes[A]): HBaseRDD[A]

    Definition Classes
    HBaseWriteSupport
  20. implicit def toHBaseRDDFixed[A](rdd: RDD[(String, Seq[A])])(implicit writer: Writes[A]): HBaseRDDFixed[A]

    Definition Classes
    HBaseWriteSupport
  21. implicit def toHBaseRDDFixedT[A](rdd: RDD[(String, Seq[(A, Long)])])(implicit writer: Writes[A]): HBaseRDDFixed[(A, Long)]

    Definition Classes
    HBaseWriteSupport
  22. implicit def toHBaseRDDSimple[A](rdd: RDD[(String, Map[String, A])])(implicit writer: Writes[A]): HBaseRDDSimple[A]

    Definition Classes
    HBaseWriteSupport
  23. implicit def toHBaseRDDSimpleT[A](rdd: RDD[(String, Map[String, (A, Long)])])(implicit writer: Writes[A]): HBaseRDDSimple[(A, Long)]

    Definition Classes
    HBaseWriteSupport
  24. implicit def toHBaseRDDT[A](rdd: RDD[(String, Map[String, Map[String, (A, Long)]])])(implicit writer: Writes[A]): HBaseRDD[(A, Long)]

    Definition Classes
    HBaseWriteSupport
  25. implicit def toHBaseSC(sc: SparkContext): HBaseSC

    Definition Classes
    HBaseReadSupport

Inherited from HBaseUtils

Inherited from HFileSupport

Inherited from HBaseReadSupport

Inherited from HBaseWriteSupport

Inherited from AnyRef

Inherited from Any

Ungrouped