Package

agora.io

dao

Permalink

package dao

Contains some traits for writing data.

It's not intended to be a full-fledged ACID database or support SQL queries - just a means to put some basic functionality on top of the file system.

# IDs

The T allows data to be written and retrieved against a key

# Timestamps

The agora.io.dao.TimestampDao can write timestamps against a value, or retrieve a timestamp for a value

# Tags

The agora.io.dao.TagDao can write tags against a value, or retrieve a tags for a value

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. dao
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. trait FromBytes[T] extends AnyRef

    Permalink

    Typeclass to serialize a type from a byte array

    Typeclass to serialize a type from a byte array

    TODO - replace this with a better FP typeclass

  2. trait HasId[T] extends AnyRef

    Permalink

    T

    the type for which there's an ID

  3. trait IdDao[ID, T] extends AnyRef

    Permalink

    An interface representing a key/value store

    An interface representing a key/value store

    ID

    the id type

    T

    the value type

  4. trait Persist[T] extends AnyRef

    Permalink
  5. trait TagDao[T] extends AnyRef

    Permalink

    Represents the ability to tag data with key/values

  6. case class TimeRange(from: Timestamp, to: Timestamp) extends Product with Serializable

    Permalink

    A time range, inclusive

  7. type Timestamp = LocalDateTime

    Permalink
  8. trait TimestampDao[T] extends TimestampWriter[T] with TimestampReader[T]

    Permalink
  9. trait TimestampReader[T] extends AnyRef

    Permalink

    Provides a means of finding values based on a time range, as well as determining the minimum/maximum time.

  10. trait TimestampWriter[T] extends AnyRef

    Permalink
  11. trait ToBytes[T] extends AnyRef

    Permalink

    Typeclass to serialize a type to bytes

    Typeclass to serialize a type to bytes

    T

    the value to convert

Value Members

  1. object FromBytes

    Permalink
  2. object HasId

    Permalink
  3. object IdDao

    Permalink
  4. object Persist

    Permalink
  5. object TagDao

    Permalink
  6. object TimestampDao

    Permalink
  7. object ToBytes

    Permalink
  8. package instances

    Permalink
  9. implicit val ordering: Ordering[Timestamp]

    Permalink

Inherited from AnyRef

Inherited from Any

Ungrouped