Module over_partition

Source
Expand description

Types and functions that store or manipulate state/cache inside one single over window partition.

Structsยง

AffectedRange ๐Ÿ”’
AffectedRange represents a range of keys that are affected by a delta. The CacheKey fields are keys in the partition range cache + delta, which is represented by [DeltaBTreeMap].
OverPartition ๐Ÿ”’
A wrapper of PartitionCache that provides helper methods to manipulate the cache. By putting this type inside private module, we can avoid misuse of the internal fields and methods.
OverPartitionStats ๐Ÿ”’

Constantsยง

MAGIC_BATCH_SIZE ๐Ÿ”’
MAGIC_CACHE_SIZE ๐Ÿ”’
MAGIC_JITTER_PREVENTION ๐Ÿ”’

Functionsยง

new_empty_partition_cache ๐Ÿ”’
shrink_partition_cache ๐Ÿ”’

Type Aliasesยง

CacheKey ๐Ÿ”’
PartitionCache ๐Ÿ”’
Range cache for one over window partition. The cache entries can be:
PartitionDelta ๐Ÿ”’
Changes happened in one over window partition.