multentry
Multentry is a data structure and associated library designed to manage collections of entries where each entry may be referenced by one or more keys. Unlike a conventional hash map which enforces a one-to-one key/value relation, a Multentry allows a single key to map to multiple distinct entries or, conversely, an entry to be accessible via several different keys. This flexibility makes it particularly useful in applications that require complex identifier schemes, such as multi-language lookup tables, inventory systems with multiple SKU references, or database indexes that support both primary and secondary keys.
The core of a Multentry implementation comprises three components: an index engine, a storage backend, and an
Most mainstream programming environments provide Multentry equivalents. In the Java ecosystem the Multimap in the Guava
When choosing Multentry for a project, developers should assess key access patterns, data volume, and required
Tools and languages with native or ecosystem support for Multentry include Java (Guava), C# (PowerCollections), Python