hashmap

package
v0.5.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 17, 2022 License: Apache-2.0 Imports: 6 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	UnitLimit = 256
)

Variables

This section is empty.

Functions

This section is empty.

Types

type StrHashMap

type StrHashMap struct {
	// contains filtered or unexported fields
}

StrHashMap, key is []byte, value a uint64 value (starting from 1)

each time a new key is inserted, the hashtable returns a lastvalue+1 or, if the old key is inserted, the value corresponding to that key

func NewStrMap

func NewStrMap(hasNull bool) *StrHashMap

func (*StrHashMap) Insert

func (m *StrHashMap) Insert(vecs []*vector.Vector, row int) bool

Insert a row from multiple columns into the hashmap, return true if it is new, otherwise false

func (*StrHashMap) InsertValue

func (m *StrHashMap) InsertValue(val any) bool

Insert a value, return true if it is new, otherwise false never handle null

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL