Class/Object

eie.dao.instances

FileTimestampDao

Related Docs: object FileTimestampDao | package instances

Permalink

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

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)

Linear Supertypes
Serializable, Serializable, Product, Equals, TimestampDao[T], TimestampReader[T], TimestampWriter[T], AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. FileTimestampDao
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. TimestampDao
  7. TimestampReader
  8. TimestampWriter
  9. AnyRef
  10. Any
Implicitly
  1. by any2stringadd
  2. by StringFormat
  3. by Ensuring
  4. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new FileTimestampDao(rootDir: Path)(implicit saveValue: Persist[T], fromBytes: FromBytes[T], idFor: HasId[T])

    Permalink

    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)

Type Members

  1. type Id = String

    Permalink
  2. type RemoveResult = Path

    Permalink
    Definition Classes
    FileTimestampDaoTimestampWriter
  3. type SaveResult = Path

    Permalink
    Definition Classes
    FileTimestampDaoTimestampWriter

Value Members

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  3. def +(other: String): String

    Permalink
    Implicit information
    This member is added by an implicit conversion from FileTimestampDao[T] to any2stringadd[FileTimestampDao[T]] performed by method any2stringadd in scala.Predef.
    Definition Classes
    any2stringadd
  4. def ->[B](y: B): (FileTimestampDao[T], B)

    Permalink
    Implicit information
    This member is added by an implicit conversion from FileTimestampDao[T] to ArrowAssoc[FileTimestampDao[T]] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @inline()
  5. final def ==(arg0: Any): Boolean

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

    Permalink
    Definition Classes
    Any
  7. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  8. def ensuring(cond: (FileTimestampDao[T]) ⇒ Boolean, msg: ⇒ Any): FileTimestampDao[T]

    Permalink
    Implicit information
    This member is added by an implicit conversion from FileTimestampDao[T] to Ensuring[FileTimestampDao[T]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  9. def ensuring(cond: (FileTimestampDao[T]) ⇒ Boolean): FileTimestampDao[T]

    Permalink
    Implicit information
    This member is added by an implicit conversion from FileTimestampDao[T] to Ensuring[FileTimestampDao[T]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  10. def ensuring(cond: Boolean, msg: ⇒ Any): FileTimestampDao[T]

    Permalink
    Implicit information
    This member is added by an implicit conversion from FileTimestampDao[T] to Ensuring[FileTimestampDao[T]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  11. def ensuring(cond: Boolean): FileTimestampDao[T]

    Permalink
    Implicit information
    This member is added by an implicit conversion from FileTimestampDao[T] to Ensuring[FileTimestampDao[T]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  12. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  13. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  14. final def find(from: Timestamp, to: Timestamp): Iterator[T]

    Permalink
  15. def find(range: TimeRange): Iterator[T]

    Permalink

    With the directory structure:

    With the directory structure:

    <date>/


    //__ we can know to include *all* the subdirectories or if we have to filter them

    Definition Classes
    FileTimestampDaoTimestampReader
  16. def findIds(range: TimeRange): Iterator[String]

    Permalink
  17. def first(): Option[Timestamp]

    Permalink

    returns

    The first timestamp stored, if any

    Definition Classes
    FileTimestampDaoTimestampReader
  18. def firstId: Option[String]

    Permalink
  19. def formatted(fmtstr: String): String

    Permalink
    Implicit information
    This member is added by an implicit conversion from FileTimestampDao[T] to StringFormat[FileTimestampDao[T]] performed by method StringFormat in scala.Predef.
    Definition Classes
    StringFormat
    Annotations
    @inline()
  20. final def getClass(): Class[_]

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

    Permalink
    Definition Classes
    Any
  22. def last(): Option[Timestamp]

    Permalink

    returns

    The last timestamp stored, if any

    Definition Classes
    FileTimestampDaoTimestampReader
  23. def lastId: Option[String]

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

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

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

    Permalink
    Definition Classes
    AnyRef
  27. def remove(data: T, timestamp: Timestamp): Path

    Permalink
    Definition Classes
    FileTimestampDaoTimestampWriter
  28. def removeBefore(timestamp: Timestamp): Array[Path]

    Permalink
  29. val rootDir: Path

    Permalink

    the directory under which all the data will be stored

  30. def save(data: T, timestamp: Timestamp): Path

    Permalink
    Definition Classes
    FileTimestampDaoTimestampWriter
  31. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  32. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  35. def [B](y: B): (FileTimestampDao[T], B)

    Permalink
    Implicit information
    This member is added by an implicit conversion from FileTimestampDao[T] to ArrowAssoc[FileTimestampDao[T]] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from TimestampDao[T]

Inherited from TimestampReader[T]

Inherited from TimestampWriter[T]

Inherited from AnyRef

Inherited from Any

Inherited by implicit conversion any2stringadd from FileTimestampDao[T] to any2stringadd[FileTimestampDao[T]]

Inherited by implicit conversion StringFormat from FileTimestampDao[T] to StringFormat[FileTimestampDao[T]]

Inherited by implicit conversion Ensuring from FileTimestampDao[T] to Ensuring[FileTimestampDao[T]]

Inherited by implicit conversion ArrowAssoc from FileTimestampDao[T] to ArrowAssoc[FileTimestampDao[T]]

Ungrouped