Module state_table

Module state_table 

Source

MacrosΒ§

dispatch_value_indices πŸ”’
insane_mode_discard_point πŸ”’
This macro is used to mark a point where we want to randomly discard the operation and early return, only in insane mode.

StructsΒ§

StateTableBuilder
StateTableInner
StateTableInner is the interface accessing relational data in KV(StateStore) with row-based encoding.
StateTablePostCommit
A callback struct returned from StateTableInner::commit.
StateTableRowStore πŸ”’
Extract the logic of StateTableRowStore from StateTable, which serves a similar functionality as a BTreeMap<TableKey<Bytes>, OwnedRow>, and provides method to read (get and iter) over serialized key (or key range) and returns OwnedRow, and write (insert, delete, update) on (TableKey<Bytes>, OwnedRow).
VnodeStatistics πŸ”’
Per-vnode statistics for pruning. None means this stat is not maintained. For each vnode, we maintain the min and max storage table key (excluding the vnode part) observed in the vnode. The stat won’t differentiate between tombstone and normal keys.

EnumsΒ§

StateTableOpConsistencyLevel

TraitsΒ§

FromVnodeBytes
KeyedRowStream
PkRowStream
RowStream

FunctionsΒ§

consistent_old_value_op πŸ”’
deserialize_keyed_row_stream πŸ”’
end_range_to_memcomparable πŸ”’
fill_non_output_indices πŸ”’
prefix_and_sub_range_to_memcomparable πŸ”’
prefix_range_to_memcomparable
start_range_to_memcomparable πŸ”’

Type AliasesΒ§

ReplicatedStateTable
ReplicatedStateTable is meant to replicate upstream shared buffer. Used for ArrangementBackfill executor.
StateTable
StateTable will use BasicSerde as default