org.sigilaris.node.jvm.storage.swaydb.StoreIndexSwayInterpreter
StoreIndex implementation backed by a SwayDB persistent map, supporting range queries.
Type parameters
-
K
-
the key type
-
V
-
the value type, which must have byte codec instances
Value parameters
-
map
-
the underlying SwayDB map
Attributes
-
Companion
-
object
-
Source
-
StoreIndexSwayInterpreter.scala
-
Graph
-
-
Supertypes
-
class Object
trait Matchable
class Any
Members list
Closes the underlying SwayDB map and releases resources.
Returns a paginated list of key-value pairs starting from the given key.
Returns a paginated list of key-value pairs starting from the given key.
Value parameters
-
key
-
the starting key (inclusive)
-
limit
-
maximum number of entries to return
-
offset
-
number of entries to skip from the starting key
Attributes
-
Returns
-
a list of key-value pairs in key order
-
Definition Classes
-
-
Source
-
StoreIndexSwayInterpreter.scala
Retrieves the value associated with the given key.
Retrieves the value associated with the given key.
Value parameters
-
key
-
the key to look up
Attributes
-
Returns
-
the value if found, or None
-
Definition Classes
-
-
Source
-
StoreIndexSwayInterpreter.scala
Associates the given value with the given key, overwriting any existing mapping.
Associates the given value with the given key, overwriting any existing mapping.
Value parameters
-
key
-
the key
-
value
-
the value to store
Attributes
-
Definition Classes
-
-
Source
-
StoreIndexSwayInterpreter.scala
Removes the mapping for the given key, if it exists.
Removes the mapping for the given key, if it exists.
Value parameters
-
key
-
the key to remove
Attributes
-
Definition Classes
-
-
Source
-
StoreIndexSwayInterpreter.scala