ConfigMap that defines the configuration's EntityMap, key properties, and TranscodeRegistry. If omitted, defaults to BaseConfigMap.
Values-first config literal type captured at construction time (phantom generic; type-only). This is used by downstream adapters to infer index-token unions (ITS) and per-index page key shapes.
Create an EntityManager instance.
Get the current EntityManager Config object.
Current Config object.
Set the current EntityManager Config object.
Config object.
Update generated properties, hash key, and range key on an EntityItem object.
Config entities key.
EntityItem object.
Optionaloverwrite: booleanOverwrite existing properties (default false).
EntityRecord object with updated properties.
Optionaloverwrite: booleanEncode a generated property value. Returns a string or undefined if atomicity requirement of sharded properties not met.
Config generatedProperties key.
EntityItem object.
Encoded generated property value.
Error if property is not a Config generatedProperties key.
Find an index token based on the configured hash and range key tokens.
Index hash key token (global hashKey or a sharded generated key).
Index range key token (global rangeKey, unsharded generated key, or a transcodable scalar).
OptionalsuppressError: falseWhen false (default), throws if no match; when true, returns undefined instead.
A configured index token (narrowed to the CF.indexes key union) or undefined when allowed.
Find an index token based on the configured hash and range key tokens.
Index hash key token (global hashKey or a sharded generated key).
Index range key token (global rangeKey, unsharded generated key, or a transcodable scalar).
When false (default), throws if no match; when true, returns undefined instead.
A configured index token (narrowed to the CF.indexes key union) or undefined when allowed.
Convert one or more EntityItem objects into an array of EntityKey values.
Config entities key.
EntityItem object, or array of them.
Optionaloverwrite: booleanOverwrite existing properties (default false).
An array of EntityKey values. For a single input item, returns 0..N keys (usually 1).
For an array input, returns a single flattened array of keys across all inputs.
ProtectedqueryProtectedQuery a database entity across shards in a provider-generic fashion.
QueryOptions object.
QueryResult object.
The provided shardQueryMap performs the actual query of individual data pages on individual index/shard combinations.
Individual shard query results will be combined, deduped by Config uniqueProperty value, and sorted by sortOrder.
In queries on sharded data, expect the leading and trailing edges of returned data pages to interleave somewhat with preceding & following pages.
Unsharded query results should sort & page as expected.
Normally this method should not be called directly! It is used by a platform-specific QueryBuilder.query method to provide a fluent query API.
Error if options pageKeyMap pageKeyMap keys do not match shardQueryMap keys.
Strips generated properties, hash key, and range key from an EntityRecord object.
Config entities key.
EntityRecord object.
EntityItem with generated properties, hash key & range key removed.
The EntityManager class applies a configuration-driven sharded data model & query strategy to NoSql data.
Remarks
While the
querymethod ispublic, normally it should not be called directly. Thequerymethod is used by a platform-specificQueryBuilder.querymethod to provide a fluent query API.