Packages

class LevelDB extends KVStore

Implementation of KVStore that uses LevelDB as the underlying data store.

Linear Supertypes
KVStore, Closeable, AutoCloseable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. LevelDB
  2. KVStore
  3. Closeable
  4. AutoCloseable
  5. AnyRef
  6. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new LevelDB(path: File, serializer: KVStoreSerializer)
  2. new LevelDB(path: File)

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  6. def close(): Unit
    Definition Classes
    LevelDB → Closeable → AutoCloseable
  7. def count(type: Class[_], index: String, indexedValue: Any): Long

    Returns the number of items of the given type which match the given indexed value.

    Returns the number of items of the given type which match the given indexed value.

    Definition Classes
    LevelDBKVStore
  8. def count(type: Class[_]): Long

    Returns the number of items of the given type currently in the store.

    Returns the number of items of the given type currently in the store.

    Definition Classes
    LevelDBKVStore
  9. def delete(type: Class[_], naturalKey: Any): Unit

    Removes an object and all data related to it, like index entries, from the store.

    Removes an object and all data related to it, like index entries, from the store.

    type

    The object's type.

    naturalKey

    The object's "natural key", which uniquely identifies it. Null keys are not allowed.

    Definition Classes
    LevelDBKVStore
    Exceptions thrown

    java.util.NoSuchElementException If an element with the given key does not exist.

  10. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  11. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  12. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  13. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  14. def getMetadata[T](klass: Class[T]): T

    Returns app-specific metadata from the store, or null if it's not currently set.

    Returns app-specific metadata from the store, or null if it's not currently set.

    The metadata type is application-specific. This is a convenience method so that applications don't need to define their own keys for this information.

    Definition Classes
    LevelDBKVStore
  15. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  16. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  17. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  18. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  19. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  20. def read[T](klass: Class[T], naturalKey: Any): T

    Read a specific instance of an object.

    Read a specific instance of an object.

    naturalKey

    The object's "natural key", which uniquely identifies it. Null keys are not allowed.

    Definition Classes
    LevelDBKVStore
    Exceptions thrown

    java.util.NoSuchElementException If an element with the given key does not exist.

  21. def removeAllByIndexValues[T](klass: Class[T], index: String, indexValues: Collection[_]): Boolean

    A cheaper way to remove multiple items from the KVStore

    A cheaper way to remove multiple items from the KVStore

    Definition Classes
    LevelDBKVStore
  22. def setMetadata(value: Any): Unit

    Writes the given value in the store metadata key.

    Writes the given value in the store metadata key.

    Definition Classes
    LevelDBKVStore
  23. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  24. def toString(): String
    Definition Classes
    AnyRef → Any
  25. def view[T](type: Class[T]): KVStoreView[T]

    Returns a configurable view for iterating over entities of the given type.

    Returns a configurable view for iterating over entities of the given type.

    Definition Classes
    LevelDBKVStore
  26. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  27. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  28. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  29. def write(value: Any): Unit

    Writes the given object to the store, including indexed fields.

    Writes the given object to the store, including indexed fields. Indices are updated based on the annotated fields of the object's class.

    Writes may be slower when the object already exists in the store, since it will involve updating existing indices.

    value

    The object to write.

    Definition Classes
    LevelDBKVStore

Inherited from KVStore

Inherited from Closeable

Inherited from AutoCloseable

Inherited from AnyRef

Inherited from Any

Ungrouped