mph

package
v0.0.0-...-3b44145 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package mph represents minimal perfect hash function implementation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MPH

type MPH interface {
	store.Marshaler
	store.Unmarshaler

	// Build builds a MPH for the given dictionary
	Build(dict dictionary.Dictionary) error
	// Get returns a hash value for the given word
	Get(word dictionary.Value) dictionary.Key
}

MPH represents minimal perfect hash function

func New

func New() MPH

New creates a new instance of MPH object

Jump to

Keyboard shortcuts

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