gammacb

package
v0.0.0-...-7b3ddb2 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2019 License: Apache-2.0 Imports: 35 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 CbArr2ByteArray

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

make c byte array to go byte array

func DocCmd2Document

func DocCmd2Document(docCmd *pspb.DocCmd) (*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:"-"`
	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() (*C.struct_VectorQuery, error)

Jump to

Keyboard shortcuts

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