Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrEmptyKey is returned when empty key is provided. ErrEmptyKey = errors.New("empty key provided") // ErrNotFound is returned when key is not found in map. ErrNotFound = errors.New("key not found") )
Functions ¶
func BenchmarkPartitioned ¶
func BenchmarkStd ¶
func BenchmarkSyncStd ¶
Types ¶
type HashSumPartitioner ¶
type HashSumPartitioner struct {
// contains filtered or unexported fields
}
func NewHashSumPartitioner ¶
func NewHashSumPartitioner(partitionsNum uint) *HashSumPartitioner
type PartitionedMap ¶
type PartitionedMap struct {
// contains filtered or unexported fields
}
PartitionedMap is a map that is partitioned into several maps.
func NewPartitionedMap ¶
func NewPartitionedMap(partitioner partitioner, partsnum uint) *PartitionedMap
NewPartitionedMap creates new partitioned map with given partitioner and number of partitions.
func NewPartitionedMapWithDefaultPartitioner ¶
func NewPartitionedMapWithDefaultPartitioner(partsnum uint) *PartitionedMap
NewPartitionedMapWithDefaultPartitioner creates new partitioned map with default partitioner and given number of partitions.
func (*PartitionedMap) Del ¶
func (c *PartitionedMap) Del(key string) error
Del deletes value for given key.
Click to show internal directories.
Click to hide internal directories.