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
- Variables
- func BytesToInt64(buf []byte) int64
- func CbArr2ByteArray(arr *C.struct_ByteArray) []byte
- func CbArr2ByteArrayUnsafe(arr *C.struct_ByteArray) []byte
- func DocCmd2Document(docCmd *pspb.DocCmd, idType string) (*C.struct_Doc, error)
- func New(cfg register.EngineConfig) (engine.Engine, error)
- type GammaSnapshot
- type VectorQuery
Constants ¶
View Source
const Name = "gamma"
Variables ¶
Functions ¶
func BytesToInt64 ¶
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 ¶
create doc
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)
Click to show internal directories.
Click to hide internal directories.