Skip to main content

Module entity

Module entity 

Source
Expand description

Unified Entity Model

Provides a single entity type that can represent table rows, graph nodes, graph edges, or vectors with seamless interoperability.

Re-exports§

pub use super::entity_id::EntityId;

Structs§

CrossRef
A cross-reference between entities
EdgeData
Data for a graph edge
EmbeddingSlot
A slot for embedding a specific aspect of an entity
EntityAux
Auxiliary entity data — only allocated when needed.
GraphEdgeKind
GraphNodeKind
NodeData
Data for a graph node
QueueMessageData
Queue message data
RowData
Data for a table row
SparseVector
Sparse vector representation
TimeSeriesData
Time-series data point
TimeSeriesPointKind
UnifiedEntity
A unified entity that can represent any storage type
VectorData
Data for a vector

Enums§

EntityData
The actual data content of an entity
EntityKind
The kind of entity (what storage type it belongs to)
RefType
Types of cross-references between entities

Constants§

FIRST_USER_ENTITY_ID
The first entity-id handed to user-inserted data. Ids 1..FIRST_USER_ENTITY_ID are reserved for the internal collection-descriptor and config-default entities the engine seeds at boot, so the first user-inserted rid is a STABLE, documented value regardless of how many config defaults a build ships.

Functions§

compute_entity_field_bloom
Compute the combined field-name bloom for all user-level fields in data. Returns 0 for schema-based rows (all rows share the same schema, so the per-entity bloom would be identical — caller uses a segment-level bloom).
field_name_bloom
Compute one bit of a field-name bloom filter.