Class/Object

com.metamx.rainer

Commit

Related Docs: object Commit | package rainer

Permalink

class Commit[ValueType] extends Equals

Represents a key/value commit. The value is stored as a byte array, although Commits always know how to deserialize them into a useful ValueType, using a KeyValueDeserialization.

ValueType

Underlying object type being committed. Should really be immutable and possess semantic equals and hashCode methods.

Linear Supertypes
Equals, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Commit
  2. Equals
  3. AnyRef
  4. Any
  1. Hide All
  2. Show all
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Commit(meta: CommitMetadata, payload: Option[Array[Byte]])(implicit arg0: KeyValueDeserialization[ValueType])

    Permalink

    meta

    Metadata for this comment.

    payload

    Serialized value for this commit, or None if this is a tombstone commit.

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def author: Author

    Permalink
  6. def canEqual(other: Any): Boolean

    Permalink
    Definition Classes
    Commit → Equals
  7. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  8. def comment: Comment

    Permalink
  9. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  10. def equals(other: Any): Boolean

    Permalink
    Definition Classes
    Commit → Equals → AnyRef → Any
  11. def finalize(): Unit

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

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

    Permalink
    Definition Classes
    Commit → AnyRef → Any
  14. def isEmpty: Boolean

    Permalink
  15. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  16. def key: Key

    Permalink
  17. val meta: CommitMetadata

    Permalink

    Metadata for this comment.

  18. def mtime: org.scala_tools.time.Imports.DateTime

    Permalink
  19. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  20. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  21. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  22. val payload: Option[Array[Byte]]

    Permalink

    Serialized value for this commit, or None if this is a tombstone commit.

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

    Permalink
    Definition Classes
    AnyRef
  24. def toString(): String

    Permalink
    Definition Classes
    Commit → AnyRef → Any
  25. def value: Option[Either[Exception, ValueType]]

    Permalink

    Deserialized value for this commit.

    Deserialized value for this commit. This is an Option (because payloads can be present, or not present) of an Either (because deserialization can succeed, or fail). If you are uninterested in this distinction, you can use the simpler "valueOption" method.

  26. def valueOption: Option[ValueType]

    Permalink

    Deserialized value for this commit.

    Deserialized value for this commit. This waves away the nuance of the "value" method, and represents missing payloads and failed deserializations both as Options. If you need to be able to distinguish between those two cases, or if you need access to the actual exception that was thrown, you should use "value".

  27. def version: Int

    Permalink
  28. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Equals

Inherited from AnyRef

Inherited from Any

Ungrouped