gammacb

package
v3.1.0+incompatible Latest Latest
Warning

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

Go to latest
Published: May 29, 2020 License: Apache-2.0, MIT Imports: 38 Imported by: 0

Documentation

Overview

Copyright 2019 The Vearch Authors.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Index

Constants

View Source
const Name = "gamma"

Variables

View Source
var INT, LONG, FLOAT, DOUBLE, STRING, VECTOR C.enum_DataType = C.INT, C.LONG, C.FLOAT, C.DOUBLE, C.STRING, C.VECTOR

Functions

func BytesToInt64

func BytesToInt64(buf []byte) int64

func CbArr2ByteArray

func CbArr2ByteArray(arr *C.struct_ByteArray) []byte

make c byte array to go byte array

func CbArr2ByteArrayUnsafe

func CbArr2ByteArrayUnsafe(arr *C.struct_ByteArray) []byte

func DocCmd2Document

func DocCmd2Document(docCmd *pspb.DocCmd, idType string) (*C.struct_Doc, error)

create doc

func New

Types

type GammaSnapshot

type GammaSnapshot struct {
	// contains filtered or unexported fields
}

func (*GammaSnapshot) ApplyIndex

func (g *GammaSnapshot) ApplyIndex() uint64

func (*GammaSnapshot) Close

func (g *GammaSnapshot) Close()

func (*GammaSnapshot) Next

func (g *GammaSnapshot) Next() ([]byte, error)

type VectorQuery

type VectorQuery struct {
	Field        string          `json:"field"`
	FeatureData  json.RawMessage `json:"feature"`
	Feature      []float32       `json:"-"`
	FeatureUint8 []uint8         `json:"-"`
	Symbol       string          `json:"symbol"`
	Value        *float64        `json:"value"`
	Boost        *float64        `json:"boost"`
	Format       *string         `json:"format,omitempty"`
	MinScore     *float64        `json:"min_score,omitempty"`
	MaxScore     *float64        `json:"max_score,omitempty"`
}

func (*VectorQuery) ToC

func (query *VectorQuery) ToC(retrievalType string) (*C.struct_VectorQuery, error)

Jump to

Keyboard shortcuts

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