unicredit.spark

hbase

package hbase

Linear Supertypes
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. hbase
  2. HFileSupport
  3. HBaseReadSupport
  4. HBaseWriteSupport
  5. AnyRef
  6. 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 HBaseRDDSimple[A] extends HBaseWriteHelpers[A] with Serializable

  5. trait HBaseReadSupport extends AnyRef

    Adds implicit methods to SparkContext to read from HBase sources.

  6. final class HBaseSC extends Serializable

  7. sealed abstract class HBaseWriteHelpers[A] extends AnyRef

  8. trait HBaseWriteSupport extends AnyRef

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

  9. final class HFileMapRDD[K, C, V] extends HFileRDD

  10. sealed abstract class HFileRDD extends Serializable

  11. final class HFileSeqRDD[K, V] extends HFileRDD

  12. trait HFileSupport extends AnyRef

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

  14. trait Reads[A] extends Serializable

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

  15. 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. implicit val jsonReader: Reads[JValue]

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

    Definition Classes
    HBaseWriteSupport
  6. implicit def mapRddToHFileRdd[K, C, V](rdd: RDD[(K, Map[C, V])])(implicit arg0: ClassTag[K]): HFileMapRDD[K, C, V]

    Definition Classes
    HFileSupport
  7. def prepareTable(tableName: String, cFamily: String, keys: RDD[String], splitsCount: Int, takeSnapshot: Boolean)(implicit config: HBaseConfig): Boolean

    If the table exists, checks whether it contains the desired column family, and return false otherwise.

    If the table exists, checks whether it contains the desired column family, and return false otherwise. If table does not exist, computes the split keys and creates a table with the split keys and the desired column family.

    tableName

    name of the table

    cFamily

    name of the column family

    keys

    RDD containing all the row keys, used to compute split keys in case the table does not exist, not used otherwise

    splitsCount

    desired number of splits for the table, not used if table exists

    takeSnapshot

    if true and the table exists, take a snapshot of the table

    returns

    true if table exists or it is created and has the required column family, false otherwise

    Definition Classes
    HFileSupport
  8. def prepareTable(tableName: String, cFamily: String, filename: String, regionSize: String, header: String, takeSnapshot: Boolean)(implicit config: HBaseConfig): Boolean

    If the table exists, checks whether it contains the desired column family, and return false otherwise.

    If the table exists, checks whether it contains the desired column family, and return false otherwise. If table does not exist, computes the split keys and creates a table with the split keys and the desired column family.

    tableName

    name of the table

    cFamily

    name of the column family

    filename

    path of the input tsv file

    regionSize

    desired size of table regions, expressed as a number followed by B, K, M, G (e.g. "10G")

    header

    name of the row key header, in case the tsv contains headers, it can be null otherwise the row key must be the first field in a tsv line

    takeSnapshot

    if true and the table exists, take a snapshot of the table

    returns

    true if table exists or it is created and has the required column family, false otherwise

    Definition Classes
    HFileSupport
  9. implicit def seqRddToHFileRdd[K, V](rdd: RDD[(K, Seq[V])])(implicit arg0: ClassTag[K]): HFileSeqRDD[K, V]

    Definition Classes
    HFileSupport
  10. implicit val stringReader: Reads[String]

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

    Definition Classes
    HBaseWriteSupport
  12. implicit def toHBaseRDD[A](rdd: RDD[(String, Map[String, Map[String, A]])]): HBaseRDD[A]

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

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

    Definition Classes
    HBaseReadSupport

Inherited from HFileSupport

Inherited from HBaseReadSupport

Inherited from HBaseWriteSupport

Inherited from AnyRef

Inherited from Any

Ungrouped