document

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: May 27, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Document

type Document interface {
	Copy() Document
	GetUID() uint64
	GetIndex() int64
	GetVector() []float64
	Register()
}

type Simple

type Simple struct {
	UID    uint64    `json:"uid"`
	Index  int64     `json:"index"` // represents the first timestamp of the vector
	Vector []float64 `json:"vector"`
}

func NewSimple

func NewSimple(uid uint64, index int64, v []float64) *Simple

func (Simple) Copy

func (s Simple) Copy() Document

func (Simple) GetIndex

func (s Simple) GetIndex() int64

func (Simple) GetUID

func (s Simple) GetUID() uint64

func (Simple) GetVector

func (s Simple) GetVector() []float64

func (Simple) Register

func (s Simple) Register()

Jump to

Keyboard shortcuts

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