algorithm

package
v1.0.5 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2021 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Overview

Package algorithm provides core interface

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Bit32

type Bit32 interface {
	Search(vec []float32, size int, epsilon, radius float32) (interface{}, error)
	Insert(vec []float32) (uint, error)
	InsertCommit(vec []float32, poolSize uint32) (uint, error)
	BulkInsert(vecs [][]float32) ([]uint, []error)
	BulkInsertCommit(vecs [][]float32, poolSize uint32) ([]uint, []error)
	CreateAndSaveIndex(poolSize uint32) error
	CreateIndex(poolSize uint32) error
	SaveIndex() error
	Remove(id uint) error
	BulkRemove(ids ...uint) error
	GetVector(id uint) ([]float32, error)
	Closer
}

type Bit64

type Bit64 interface {
	Search(vec []float64, size int, epsilon, radius float32) (interface{}, error)
	Insert(vec []float64) (uint, error)
	InsertCommit(vec []float64, poolSize uint32) (uint, error)
	BulkInsert(vecs [][]float64) ([]uint, []error)
	BulkInsertCommit(vecs [][]float64, poolSize uint32) ([]uint, []error)
	CreateAndSaveIndex(poolSize uint32) error
	CreateIndex(poolSize uint32) error
	SaveIndex() error
	Remove(id uint) error
	BulkRemove(ids ...uint) error
	GetVector(id uint) ([]float64, error)
	Closer
}

type Closer

type Closer interface {
	Close()
}

type Mode

type Mode uint32
const (
	Float32 Mode = iota
	Float64
)

Directories

Path Synopsis
Package gongt provides gongt Package gongt provides gongt
Package gongt provides gongt Package gongt provides gongt
Package ngt provides ngt Package ngt provides ngt
Package ngt provides ngt Package ngt provides ngt

Jump to

Keyboard shortcuts

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