class

AtomSpace::StorageNode

Inherits AtomSpace::AtomResolver < AtomSpace::Node < AtomSpace::Atom < Reference < Object

Base interface for persistent storage Implements AtomResolver for lazy loading support

Constructors

new(name : String)

Instance methods

close

Close connection to storage backend

connected?

Check if connection is open

fetch_atom(handle : Handle) : Atom | Nil

Fetch a single atom by handle

fetch_atoms_batch(handles : Array(Handle)) : Array(Atom)

Fetch multiple atoms by handles

fetch_atoms_by_type(type : AtomType) : Array(Atom)
get_stats

Get storage statistics

load_atomspace(atomspace : AtomSpace) : Bool

Load all atoms into AtomSpace

open

Open connection to storage backend

remove_atom(atom : Atom) : Bool

Remove an atom from storage

resolve_atom(handle : Handle) : Atom | Nil

AtomResolver interface implementation - used by lazy loading

store_atom(atom : Atom) : Bool

Store a single atom

store_atoms(atoms : Array(Atom)) : Bool

Bulk operations

store_atoms_batch(atoms : Array(Atom)) : Bool

Batch operations with transaction support (default implementation) Subclasses should override with proper transaction handling

store_atomspace(atomspace : AtomSpace) : Bool

Store all atoms from AtomSpace