StoreIndexSwayInterpreter

org.sigilaris.node.jvm.storage.swaydb.StoreIndexSwayInterpreter
See theStoreIndexSwayInterpreter companion class

Attributes

Companion
class
Source
StoreIndexSwayInterpreter.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Value members

Concrete methods

def apply[K, V](dir: Path)(using evidence$1: ByteEncoder[K], evidence$2: ByteDecoder[K], evidence$3: ByteEncoder[V], evidence$4: ByteDecoder[V], Async[IO]): IO[StoreIndexSwayInterpreter[K, V]]

Creates a new StoreIndexSwayInterpreter by opening a persistent SwayDB map at the given directory.

Creates a new StoreIndexSwayInterpreter by opening a persistent SwayDB map at the given directory.

Type parameters

K

the key type

V

the value type

Value parameters

dir

the filesystem directory for the SwayDB storage

Attributes

Returns

an IO that yields the constructed store index

Source
StoreIndexSwayInterpreter.scala
def ensureNoRemainder[A](decoded: DecodeResult[A], message: String): Either[DecodeFailure, A]

Validates that a decode result consumed all bytes, returning a DecodeFailure if not.

Validates that a decode result consumed all bytes, returning a DecodeFailure if not.

Type parameters

A

the decoded value type

Value parameters

decoded

the decode result to validate

message

the error message if there is a non-empty remainder

Attributes

Returns

the decoded value, or a DecodeFailure

Source
StoreIndexSwayInterpreter.scala

Givens

Givens

given given_BuildValidator: BuildValidator
given given_ClassTag_Nothing: ClassTag[Nothing]
given given_Serializer_Array: Serializer[Array[Byte]]
given serializerFromCodecs[A : ByteEncoder : ByteDecoder]: Serializer[A]