sorter

package
v1.13.1 Latest Latest
Warning

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

Go to latest
Published: May 3, 2022 License: BSD-3-Clause Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LSMSorter

type LSMSorter interface {
	Sort(ctx context.Context, limit int, sort []filters.Sort,
		additional additional.Properties) ([]uint64, error)
	SortDocIDs(ctx context.Context, limit int, sort []filters.Sort, ids []uint64,
		additional additional.Properties) ([]uint64, error)
	SortDocIDsAndDists(ctx context.Context, limit int, sort []filters.Sort,
		ids []uint64, dists []float32, additional additional.Properties) ([]uint64, []float32, error)
}

func NewLSMSorter

func NewLSMSorter(store *lsmkv.Store, schema schema.Schema, className schema.ClassName) LSMSorter

type Sorter

type Sorter interface {
	Sort(objects []*storobj.Object, distances []float32,
		limit int, sort []filters.Sort) ([]*storobj.Object, []float32, error)
}

func New

func New(schema schema.Schema) Sorter

Jump to

Keyboard shortcuts

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