package
Version:
v0.0.0-...-8510552
Opens a new window with list of versions in this module.
Published: Aug 9, 2023
License: GPL-3.0
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Package partmap provide a partitioned map.
Map represent the partitioned map.
New creates a new partitioned map instance.
Len returns the number of entries in the map.
func (pm *Map[P]) Load(k P) (P, bool)
Load reads a map value.
func (pm *Map[P]) NumPart() int
NumPart returns the number of partitions.
func (pm *Map[P]) Source(idx int) []P
Source returns the source list for partition idx.
func (pm *Map[P]) StoreTarget(k, v P) bool
StoreTarget writes a map value if not existent and adds the key to the target list.
Swap swaps the source list with the target list.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.