p
lightdb
package lightdb
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- lightdb
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- Protected
Package Members
Type Members
- implicit final class ByteArrayExtras extends AnyVal
- sealed trait CommitMode extends AnyRef
- sealed trait DocLock[D <: Document[D]] extends Any
- trait Document[D <: Document[D]] extends AnyRef
- case class Facet[D <: Document[D]](count: Int = 0, ids: Set[Id[D]] = Set.empty[Id[D]]) extends Product with Serializable
- final class Id[T] extends AnyVal
- case class IndexedLink[D <: Document[D]](_id: Id[IndexedLink[D]], links: List[Id[D]]) extends Document[IndexedLink[D]] with Product with Serializable
- case class IndexedLinks[V, D <: Document[D]](name: String, createV: (D) => V, createKey: (V) => String, collection: AbstractCollection[D], maxLinks: MaxLinks = MaxLinks.OverflowWarn()) extends Product with Serializable
Creates a key/value stored object with a list of links.
Creates a key/value stored object with a list of links. This can be incredibly efficient for small lists, but much slower for larger sets of data and a standard index would be preferable.
- name
the name of the index
- createV
creates the value from the document
- createKey
creates a unique identifier from the value
- collection
the collection to associate this with
- maxLinks
determines how to handle maximum number of links
- case class KeyValue(_id: Id[KeyValue], value: Json) extends Document[KeyValue] with Product with Serializable
- abstract class LightDB extends AnyRef
- sealed trait MaxLinks extends AnyRef
- sealed trait Persistence extends AnyRef
- trait RecordDocument[D <: RecordDocument[D]] extends Document[D]
- trait Store extends AnyRef
- case class StoredValue[T](key: String, collection: Collection[KeyValue], default: () => T, persistence: Persistence)(implicit rw: RW[T]) extends Product with Serializable
- case class ValueStore[V, D <: Document[D]](key: String, createV: (D) => List[V], collection: AbstractCollection[D], includeIds: Boolean = false, persistence: Persistence = Persistence.Stored)(implicit rw: RW[V]) extends Product with Serializable
Value Members
- object CommitMode
- object DocLock
- object Facet extends Serializable
- object Id
- object IndexedLink extends Serializable
- object KeyValue extends Serializable
- object MaxLinks
- object Persistence
- object Unique
Unique String generator