StorageMode

org.sigilaris.node.jvm.runtime.StorageMode
See theStorageMode companion enum
object StorageMode

Companion for StorageMode providing CLI argument parsing.

Attributes

Companion
enum
Source
StorageMode.scala
Graph
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type

Members list

Type members

Inherited and Abstract types

type MirroredElemLabels <: Tuple

The names of the product elements

The names of the product elements

Attributes

Inherited from:
Mirror
Source
Mirror.scala
type MirroredLabel <: String

The name of the type

The name of the type

Attributes

Inherited from:
Mirror
Source
Mirror.scala

Value members

Concrete methods

def fromArgs[Layout](args: IterableOnce[String], persistentLayout: => Layout, inMemoryFlag: String): StorageMode[Layout]

Determines the storage mode from CLI arguments.

Determines the storage mode from CLI arguments.

If args contains inMemoryFlag, returns StorageMode.InMemory; otherwise returns StorageMode.Persistent with the provided layout.

Type parameters

Layout

the persistent storage layout type

Value parameters

args

CLI arguments to inspect

inMemoryFlag

the flag string that triggers in-memory mode

persistentLayout

lazily evaluated layout used when persistent mode is selected

Attributes

Returns

the resolved storage mode

Source
StorageMode.scala

Concrete fields

val DefaultInMemoryFlag: String

Default CLI flag used to select in-memory mode.

Default CLI flag used to select in-memory mode.

Attributes

Source
StorageMode.scala