core

package
v0.0.45 Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2020 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Overview

Package core provides core interface

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Closer

type Closer interface {
	Close()
}

type Core32

type Core32 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 Core64

type Core64 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 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