Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/cockroachdb/swiss
/ types & classes
Types & classes
26 in github.com/cockroachdb/swiss
⨍
Functions
113
◇
Types & classes
26
↓ 7 callers
TypeAlias
ctrl
Each slot in the hash table has a control byte which can have one of three states: empty, deleted, and full. They have the following bit patterns:
map.go:1477
↓ 4 callers
TypeAlias
bitset
bitset represents a set of slots within a group. The underlying representation uses one byte per slot, where each byte is either 0x80 if the slot is
map.go:1441
↓ 2 callers
TypeAlias
ctrlGroup
ctrlGroup is a fixed size array of groupSize control bytes stored in a uint64. See Get() and Set() methods implemented in endian_*.go.
map.go:1483
Interface
Allocator
Allocator specifies an interface for allocating and releasing memory used by a Map. The default allocator utilizes Go's builtin make() and allows the
options.go:60
Struct
Group
Group holds groupSize control bytes and slots.
map.go:229
Struct
Map
Map is an unordered map from keys to values with Put, Get, Delete, and All operations. Map is inspired by Google's Swiss Tables design as implemented
map.go:283
Interface
Option
Option provides an interface for passing configuration parameters for Map initialization.
options.go:21
Struct
allocatorOption
options.go:78
Interface
benchTypes
bench_test.go:113
Struct
bucket
bucket implements Google's Swiss Tables hash table design. A Map is composed of 1 or more buckets that are addressed using extendible hashing.
map.go:236
Struct
countingAllocator
map_test.go:454
Struct
defaultAllocator
options.go:69
FuncType
hashFn
func(key unsafe.Pointer, seed uintptr) uintptr
runtime_go1.20.go:34
Struct
hashOption
options.go:25
Struct
maxBucketCapacityOption
options.go:38
Struct
noCopy
noCopy may be added to structs which must not be copied after the first use. See https://golang.org/issues/8005#issuecomment-190753527 for details.
map.go:1707
Struct
probeSeq
probeSeq maintains the state for a probe sequence that iterates through the groups in a bucket. The sequence is a triangular progression of the form
map.go:1609
Struct
rtEface
From runtime/runtime2.go:eface
runtime_go1.20.go:56
Struct
rtMapType
From internal/abi/type.go:MapType In go 1.24, this is a prefix of both abi.SwissMapType and abi.OldMapType.
runtime_go1.20.go:63
TypeAlias
rtNameOff
runtime_go1.20.go:75
TypeAlias
rtTFlag
runtime_go1.20.go:74
Struct
rtType
From internal/abi/type.go:Type
runtime_go1.20.go:79
TypeAlias
rtTypeOff
runtime_go1.20.go:76
Struct
slot
slot holds a key and value.
map.go:223
Struct
slotGroup
slotGroup is a fixed size array of groupSize slots. The keys and values are stored interleaved in slots with a memory layout that looks like K/V/K/V/
map.go:1581
Struct
unsafeSlice
unsafeSlice provides semi-ergonomic limited slice-like functionality without bounds checking for fixed sized slices.
map.go:1660