org.eligosource.eventsourced.journal.hbase

CreateTable

object CreateTable extends App

Creates an HBase event message table.

Usage from the sbt command prompt:

> project eventsourced-journal-hbase
> run-main org.eligosource.eventsourced.journal.hbase.CreateTable <zookeeperQuorum> [<tableName>] [<partitionCount>]

Usage from within an application:

import org.eligosource.eventsourced.journal.hbase.CreateTable

class Example {
  val zookeeperQuorum = "localhost:2181" // comma separated list of servers in the ZooKeeper quorum
  val tableName       = "event"          // name of the event message table to be created
  val partitionCount  = 16               // number of regions the event message table is pre-split

  CreateTable(zookeeperQuorum, tableName, partitionCount)
}

Alternatively, applications may also use an HBase configuration object instead of zookeeperQuorum:

import org.apache.hadoop.conf.Configuration
import org.eligosource.eventsourced.journal.hbase.CreateTable

class Example {
  val config: Configuration = ...       // HBase configuration object
  val tableName             = "event"   // name of the event message table to be created
  val partitionCount        = 16        // number of regions the event message table is pre-split

  CreateTable(config, tableName, partitionCount)
}
Linear Supertypes
App, DelayedInit, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. CreateTable
  2. App
  3. DelayedInit
  4. AnyRef
  5. 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. def apply(config: Configuration, tableName: String, partitionCount: Int, customizeCf: (HColumnDescriptor) ⇒ Unit): Unit

    Creates an HBase event message table.

    Creates an HBase event message table.

    config

    HBase configuration object.

    tableName

    name of the event message table to be created.

    partitionCount

    number of regions the event message table is pre-split.

    customizeCf

    a function which takes the HColumnDescriptor as input; for customizing cf.

  7. def apply(config: Configuration, tableName: String = DefaultTableName, partitionCount: Int = DefaultPartitionCount): Unit

    Creates an HBase event message table.

    Creates an HBase event message table.

    config

    HBase configuration object.

    tableName

    name of the event message table to be created.

    partitionCount

    number of regions the event message table is pre-split.

  8. def apply(zookeeperQuorum: String, tableName: String, partitionCount: Int): Unit

    Creates an HBase event message table.

    Creates an HBase event message table.

    zookeeperQuorum

    Comma separated list of servers in the ZooKeeper quorum. See also the hbase.zookeeper.quorum configuration property.

    tableName

    name of the event message table to be created.

    partitionCount

    number of regions the event message table is pre-split.

  9. def args: Array[String]

    Attributes
    protected
    Definition Classes
    App
  10. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  11. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  12. def delayedInit(body: ⇒ Unit): Unit

    Definition Classes
    App → DelayedInit
  13. final def eq(arg0: AnyRef): Boolean

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

    Definition Classes
    AnyRef → Any
  15. val executionStart: Long

    Definition Classes
    App
  16. def finalize(): Unit

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

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

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

    Definition Classes
    Any
  20. def main(args: Array[String]): Unit

    Definition Classes
    App
  21. final def ne(arg0: AnyRef): Boolean

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

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

    Definition Classes
    AnyRef
  24. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  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 App

Inherited from DelayedInit

Inherited from AnyRef

Inherited from Any

Ungrouped