final class VersionedLDBKVStore extends KVStore
That source code had been copied/modified from ErgoPlatform Project
A LevelDB wrapper providing additional versioning layer along with a convenient db interface.
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- VersionedLDBKVStore
- KVStore
- AutoCloseable
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All
Instance Constructors
- new VersionedLDBKVStore(db: DB, keepVersions: Int)
Type Members
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
- val ChangeSetPrefix: Byte
- val VersionsKey: Array[Byte]
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native() @HotSpotIntrinsicCandidate()
-
def
close(): Unit
- Definition Classes
- KVStore → AutoCloseable
-
val
db: DB
- Attributes
- protected
- Definition Classes
- VersionedLDBKVStore → KVStore
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
get(keys: Seq[K]): Seq[(K, Option[V])]
- Definition Classes
- KVStore
-
def
get(key: K): Option[V]
- Definition Classes
- KVStore
-
def
getAll: Seq[(K, V)]
- Definition Classes
- KVStore
-
def
getAll(cond: (K, V) ⇒ Boolean): Seq[(K, V)]
- Definition Classes
- KVStore
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def getIterator: StorageIterator
-
def
getOrElse(key: K, default: ⇒ V): V
- Definition Classes
- KVStore
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def insert(toInsert: Seq[(K, V)])(version: VersionId): Unit
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- val keepVersions: Int
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def remove(toRemove: Seq[K])(version: VersionId): Unit
-
def
rollbackTo(versionId: VersionId): Try[Unit]
Rolls storage state back to the specified checkpoint.
Rolls storage state back to the specified checkpoint.
- versionId
- version id to roll back to
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
def
update(toInsert: Seq[(K, V)], toRemove: Seq[K])(version: VersionId): Unit
Performs versioned update.
Performs versioned update.
- toInsert
- key, value pairs to be inserted/updated
- toRemove
- keys to be removed
- def versionIdExists(versionId: VersionId): Boolean
- def versions: Seq[VersionId]
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
Deprecated Value Members
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] ) @Deprecated
- Deprecated