class LevelDBMap extends AnyRef
A Scala-friendly wrapper around the JniDBFactory Java-wrapper around leveldb.
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- LevelDBMap
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All
Instance Constructors
-
new
LevelDBMap(db: DB)
- db
The leveldb, remember to close it after using. This wrapper will NOT close the db for you.
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
- def close(): Unit
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
def
get[Key, Value](key: Key)(implicit keys: ToBytes[Key], values: FromBytes[Value]): Option[Value]
Returns the value matching key, if any.
Returns the value matching key, if any.
- Annotations
- @throws( ... )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
getOrElseUpdate[Key, Value](key: Key, orElse: () ⇒ Value)(implicit keys: ToBytes[Key], valuesFrom: FromBytes[Value], valuesTo: ToBytes[Value]): Value
Gets the value if it exists, otherwise computes the fallback value and stores it.
Gets the value if it exists, otherwise computes the fallback value and stores it.
This method is not thread-safe, the computed fallback value may get overwritten.
- Annotations
- @throws( ... )
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
def
put[Key, Value](key: Key, value: Value)(implicit keys: ToBytes[Key], values: ToBytes[Value]): Value
Inserts a new value for the given key.
Inserts a new value for the given key.
- Annotations
- @throws( ... )
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )