Package

eie.dao

instances

Permalink

package instances

Visibility
  1. Public
  2. All

Type Members

  1. class FileIdDao[T] extends IdDao[String, T]

    Permalink
  2. case class FileTagDao[T](rootDir: Path, maxTagLen: Int, maxTagValueLen: Int)(implicit persist: Persist[T], hasId: HasId[T], fromBytes: FromBytes[T]) extends TagDao[T] with Product with Serializable

    Permalink

    Stores things in the format:

    Stores things in the format:

    When a tag value is not alphanumeric, or is longer than 'maxTagValueLen':

    <root dir>/tags/<tag>/<value hash>/<id>/.value = <value> <root dir>/tags/<tag>/<value hash>/<id>/.data = <data>

    or, when the tag value IS alphanumber and within 'maxTagValueLen':

    <root dir>/tags/<tag>/<value>/<id>/.data

    It also stores:

    <root dir>/ids/<id>/<tag> = <value>

    for queries on just the id (e.g. list tags), or when the id and tag are known

    T

    the value type

    rootDir

    the directory to store the data

    maxTagLen

    the maximum allowed length of tags

    persist

    the ability to persist T values

    hasId

    the ability to determine an ID for T values

    fromBytes

    the ability to read T values from byte arrays

  3. case class FileTimestampDao[T](rootDir: Path)(implicit saveValue: Persist[T], fromBytes: FromBytes[T], idFor: HasId[T]) extends TimestampDao[T] with Product with Serializable

    Permalink

    Writes stuff (T values) down under the given directory structures:

    Writes stuff (T values) down under the given directory structures:

    <dir>/dates/<date>/<hour>/<minute>/<second>_<nano>_<id> = *data*

    where *data* is determined by the given Persist, which is either the data itself or a linked file.

    The implicit Persist may only link to the former instead of serializing the data

    T

    the value to save/retrieve

    rootDir

    the directory under which all the data will be stored

    saveValue

    the Persist instance to use in saving (or linking) the data.

    fromBytes

    a means of deserializing a T from bytes

    idFor

    the ability to name the T values w/ an ID (as multiple Ts can exist for the same instant)

Value Members

  1. object FileTimestampDao extends Serializable

    Permalink

Ungrouped