Package

com.pagerduty

eris

Permalink

package eris

Visibility
  1. Public
  2. All

Type Members

  1. class ClusterCtx extends AnyRef

    Permalink

    Cluster context combines all the Astyanax configuration as well as provides startup() and shutdown() methods.

    Cluster context combines all the Astyanax configuration as well as provides startup() and shutdown() methods.

    The following example will help you setup connection to a locally running cassandra instance:

    val clusterCtx = new ClusterCtx(
      clusterName = "CassCluster",
      astyanaxConfig = new AstyanaxConfigurationImpl()
        .setDiscoveryType(NodeDiscoveryType.RING_DESCRIBE),
      connectionPoolConfig = new ConnectionPoolConfigurationImpl("CassConnectionPool")
        .setSeeds("localhost:9160")
        .setPort(9160),
      connectionPoolMonitor = new CountingConnectionPoolMonitor()
    )
    val cluster = clusterCtx.cluster
  2. class ColumnFamilyModel[RowKey, ColName, ColValue] extends AnyRef

    Permalink

    Keeps column family and related data together.

  3. case class ColumnFamilySettings(rowKeyValidatorOverride: Option[String] = None, colNameValidatorOverride: Option[String] = None, colValueValidatorOverride: Option[String] = None) extends Product with Serializable

    Permalink

    Allows to override validators.

    Allows to override validators.

    For example, you can use the following settings to create counter column family.

    ColumnFamilySettings(colValueValidatorOverride = Some(
      com.netflix.astyanax.serializers.ComparatorType.COUNTERTYPE.getClassName))
  4. case class ColumnModel(name: String, indexed: Boolean, validationClass: String) extends Product with Serializable

    Permalink

    High level column declaration that can be converted to Astyanax column definition.

    High level column declaration that can be converted to Astyanax column definition.

    name

    column name

    indexed

    true for indexed columns, false otherwise

    validationClass

    validation class for the column value

  5. case class TimeUuid(value: UUID) extends Product with Serializable

    Permalink

    TimeUuid represents a subset of UUIDs that preserve temporal order.

    TimeUuid represents a subset of UUIDs that preserve temporal order. Since we cannot subclass UUID directly, we use a wrapper.

Value Members

  1. object ColumnFamilyModel

    Permalink
  2. object ColumnModel extends Serializable

    Permalink
  3. object FutureConversions

    Permalink

    Provides a convenient conversion between Futures used in Astyanax and Scala Futures.

  4. object TimeUuid extends Serializable

    Permalink
  5. package schema

    Permalink
  6. package serializers

    Permalink

    We chose to omit Char and Short serializers.

    We chose to omit Char and Short serializers. Because they are stored and compared as signed Bytes, you will get unpredictable results when doing range queries. It is recommended to use Integers in your model instead.

Ungrouped