[−][src]Module terminus_store::layer
Logic for working with layers.
Databases in terminus-store are stacks of layers. The first layer in such a stack is a base layer, which contains an intial data set. On top of that, each layer stores additions and removals.
Structs
BaseLayer | A base layer. |
BaseLayerFileBuilder | A builder for a base layer. |
BaseLayerFileBuilderPhase2 | Second phase of base layer building. |
BaseTripleStream | |
ChildLayer | A child layer. |
ChildLayerFileBuilder | A builder for a child layer. |
ChildLayerFileBuilderPhase2 | Second phase of child layer building. |
ChildTripleStream | |
GenericSubjectLookup | A SubjectLookup that is implemented in terms of addition and removal lookups |
IdTriple | A triple, stored as numerical ids. |
LayerCounts | |
PartiallyResolvedTriple | A triple where the subject, predicate and object can all either be fully resolved to an id, or unresolved. |
SimpleLayerBuilder | A layer builder |
StringTriple | A triple stored as strings. |
Enums
LayerType | The type of a layer - either base or child. |
ObjectType | The type of an object in a triple. |
PossiblyResolved | Either a resolved id or an unresolved inner type. |
Traits
Layer | A layer containing dictionary entries and triples. |
LayerBuilder | A layer builder trait with no generic typing. |
LayerObjectLookup | a trait that caches a lookup by object in a single layer's addition or removals. |
LayerPredicateLookup | |
LayerSubjectLookup | A trait that caches a lookup in a layer by subject, but only for that layer and not its parents. |
LayerSubjectPredicateLookup | a trait that caches a lookup in a layer by subject and predicate, but only for that layer and not its parents. |
ObjectLookup | a trait that caches a lookup in a layer by object. |
PredicateLookup | A trait that caches a lookup in a layer by predicate. |
SubjectLookup | A trait that caches a lookup in a layer by subject. |
SubjectPredicateLookup | a trait that caches a lookup in a layer by subject and predicate. |
Functions
layer_subject_lookup_into_generic | |
open_base_triple_stream | |
open_child_triple_stream |