Skip to main content

Module over_partition

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 πŸ”’
MAX_STALE_ROWS_TO_DELETE_PER_ROUND πŸ”’
Maximum number of stale rows to delete from one partition in one round of state cleaning, to bound the number of writes buffered in one epoch when there’s a large backlog of stale rows.

Type AliasesΒ§

PartitionDelta πŸ”’
Changes happened in one over window partition.