schema

package
Version: v2.0.0-alpha.3 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DataType_name = map[int32]string{
	0:   "None",
	1:   "Bool",
	2:   "Int8",
	3:   "Int16",
	4:   "Int32",
	5:   "Int64",
	10:  "Float",
	11:  "Double",
	20:  "String",
	100: "BinaryVector",
	101: "FloatVector",
}
View Source
var DataType_value = map[string]int32{
	"None":         0,
	"Bool":         1,
	"Int8":         2,
	"Int16":        3,
	"Int32":        4,
	"Int64":        5,
	"Float":        10,
	"Double":       11,
	"String":       20,
	"BinaryVector": 100,
	"FloatVector":  101,
}

Functions

This section is empty.

Types

type BoolArray

type BoolArray struct {
	Data                 []bool   `protobuf:"varint,1,rep,packed,name=data,proto3" json:"data,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*BoolArray) Descriptor

func (*BoolArray) Descriptor() ([]byte, []int)

func (*BoolArray) GetData

func (m *BoolArray) GetData() []bool

func (*BoolArray) ProtoMessage

func (*BoolArray) ProtoMessage()

func (*BoolArray) Reset

func (m *BoolArray) Reset()

func (*BoolArray) String

func (m *BoolArray) String() string

func (*BoolArray) XXX_DiscardUnknown

func (m *BoolArray) XXX_DiscardUnknown()

func (*BoolArray) XXX_Marshal

func (m *BoolArray) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*BoolArray) XXX_Merge

func (m *BoolArray) XXX_Merge(src proto.Message)

func (*BoolArray) XXX_Size

func (m *BoolArray) XXX_Size() int

func (*BoolArray) XXX_Unmarshal

func (m *BoolArray) XXX_Unmarshal(b []byte) error

type BytesArray

type BytesArray struct {
	Data                 [][]byte `protobuf:"bytes,1,rep,name=data,proto3" json:"data,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

For special fields such as bigdecimal, array...

func (*BytesArray) Descriptor

func (*BytesArray) Descriptor() ([]byte, []int)

func (*BytesArray) GetData

func (m *BytesArray) GetData() [][]byte

func (*BytesArray) ProtoMessage

func (*BytesArray) ProtoMessage()

func (*BytesArray) Reset

func (m *BytesArray) Reset()

func (*BytesArray) String

func (m *BytesArray) String() string

func (*BytesArray) XXX_DiscardUnknown

func (m *BytesArray) XXX_DiscardUnknown()

func (*BytesArray) XXX_Marshal

func (m *BytesArray) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*BytesArray) XXX_Merge

func (m *BytesArray) XXX_Merge(src proto.Message)

func (*BytesArray) XXX_Size

func (m *BytesArray) XXX_Size() int

func (*BytesArray) XXX_Unmarshal

func (m *BytesArray) XXX_Unmarshal(b []byte) error

type CollectionSchema

type CollectionSchema struct {
	Name                 string         `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Description          string         `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
	AutoID               bool           `protobuf:"varint,3,opt,name=autoID,proto3" json:"autoID,omitempty"`
	Fields               []*FieldSchema `protobuf:"bytes,4,rep,name=fields,proto3" json:"fields,omitempty"`
	XXX_NoUnkeyedLiteral struct{}       `json:"-"`
	XXX_unrecognized     []byte         `json:"-"`
	XXX_sizecache        int32          `json:"-"`
}

* @brief Collection schema

func (*CollectionSchema) Descriptor

func (*CollectionSchema) Descriptor() ([]byte, []int)

func (*CollectionSchema) GetAutoID

func (m *CollectionSchema) GetAutoID() bool

func (*CollectionSchema) GetDescription

func (m *CollectionSchema) GetDescription() string

func (*CollectionSchema) GetFields

func (m *CollectionSchema) GetFields() []*FieldSchema

func (*CollectionSchema) GetName

func (m *CollectionSchema) GetName() string

func (*CollectionSchema) ProtoMessage

func (*CollectionSchema) ProtoMessage()

func (*CollectionSchema) Reset

func (m *CollectionSchema) Reset()

func (*CollectionSchema) String

func (m *CollectionSchema) String() string

func (*CollectionSchema) XXX_DiscardUnknown

func (m *CollectionSchema) XXX_DiscardUnknown()

func (*CollectionSchema) XXX_Marshal

func (m *CollectionSchema) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*CollectionSchema) XXX_Merge

func (m *CollectionSchema) XXX_Merge(src proto.Message)

func (*CollectionSchema) XXX_Size

func (m *CollectionSchema) XXX_Size() int

func (*CollectionSchema) XXX_Unmarshal

func (m *CollectionSchema) XXX_Unmarshal(b []byte) error

type DataType

type DataType int32

* @brief Field data type

const (
	DataType_None         DataType = 0
	DataType_Bool         DataType = 1
	DataType_Int8         DataType = 2
	DataType_Int16        DataType = 3
	DataType_Int32        DataType = 4
	DataType_Int64        DataType = 5
	DataType_Float        DataType = 10
	DataType_Double       DataType = 11
	DataType_String       DataType = 20
	DataType_BinaryVector DataType = 100
	DataType_FloatVector  DataType = 101
)

func (DataType) EnumDescriptor

func (DataType) EnumDescriptor() ([]byte, []int)

func (DataType) String

func (x DataType) String() string

type DoubleArray

type DoubleArray struct {
	Data                 []float64 `protobuf:"fixed64,1,rep,packed,name=data,proto3" json:"data,omitempty"`
	XXX_NoUnkeyedLiteral struct{}  `json:"-"`
	XXX_unrecognized     []byte    `json:"-"`
	XXX_sizecache        int32     `json:"-"`
}

func (*DoubleArray) Descriptor

func (*DoubleArray) Descriptor() ([]byte, []int)

func (*DoubleArray) GetData

func (m *DoubleArray) GetData() []float64

func (*DoubleArray) ProtoMessage

func (*DoubleArray) ProtoMessage()

func (*DoubleArray) Reset

func (m *DoubleArray) Reset()

func (*DoubleArray) String

func (m *DoubleArray) String() string

func (*DoubleArray) XXX_DiscardUnknown

func (m *DoubleArray) XXX_DiscardUnknown()

func (*DoubleArray) XXX_Marshal

func (m *DoubleArray) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*DoubleArray) XXX_Merge

func (m *DoubleArray) XXX_Merge(src proto.Message)

func (*DoubleArray) XXX_Size

func (m *DoubleArray) XXX_Size() int

func (*DoubleArray) XXX_Unmarshal

func (m *DoubleArray) XXX_Unmarshal(b []byte) error

type FieldData

type FieldData struct {
	Type      DataType `protobuf:"varint,1,opt,name=type,proto3,enum=milvus.proto.schema.DataType" json:"type,omitempty"`
	FieldName string   `protobuf:"bytes,2,opt,name=field_name,json=fieldName,proto3" json:"field_name,omitempty"`
	// Types that are valid to be assigned to Field:
	//	*FieldData_Scalars
	//	*FieldData_Vectors
	Field                isFieldData_Field `protobuf_oneof:"field"`
	FieldId              int64             `protobuf:"varint,5,opt,name=field_id,json=fieldId,proto3" json:"field_id,omitempty"`
	XXX_NoUnkeyedLiteral struct{}          `json:"-"`
	XXX_unrecognized     []byte            `json:"-"`
	XXX_sizecache        int32             `json:"-"`
}

func (*FieldData) Descriptor

func (*FieldData) Descriptor() ([]byte, []int)

func (*FieldData) GetField

func (m *FieldData) GetField() isFieldData_Field

func (*FieldData) GetFieldId

func (m *FieldData) GetFieldId() int64

func (*FieldData) GetFieldName

func (m *FieldData) GetFieldName() string

func (*FieldData) GetScalars

func (m *FieldData) GetScalars() *ScalarField

func (*FieldData) GetType

func (m *FieldData) GetType() DataType

func (*FieldData) GetVectors

func (m *FieldData) GetVectors() *VectorField

func (*FieldData) ProtoMessage

func (*FieldData) ProtoMessage()

func (*FieldData) Reset

func (m *FieldData) Reset()

func (*FieldData) String

func (m *FieldData) String() string

func (*FieldData) XXX_DiscardUnknown

func (m *FieldData) XXX_DiscardUnknown()

func (*FieldData) XXX_Marshal

func (m *FieldData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*FieldData) XXX_Merge

func (m *FieldData) XXX_Merge(src proto.Message)

func (*FieldData) XXX_OneofWrappers

func (*FieldData) XXX_OneofWrappers() []interface{}

XXX_OneofWrappers is for the internal use of the proto package.

func (*FieldData) XXX_Size

func (m *FieldData) XXX_Size() int

func (*FieldData) XXX_Unmarshal

func (m *FieldData) XXX_Unmarshal(b []byte) error

type FieldData_Scalars

type FieldData_Scalars struct {
	Scalars *ScalarField `protobuf:"bytes,3,opt,name=scalars,proto3,oneof"`
}

type FieldData_Vectors

type FieldData_Vectors struct {
	Vectors *VectorField `protobuf:"bytes,4,opt,name=vectors,proto3,oneof"`
}

type FieldSchema

type FieldSchema struct {
	FieldID              int64                  `protobuf:"varint,1,opt,name=fieldID,proto3" json:"fieldID,omitempty"`
	Name                 string                 `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	IsPrimaryKey         bool                   `protobuf:"varint,3,opt,name=is_primary_key,json=isPrimaryKey,proto3" json:"is_primary_key,omitempty"`
	Description          string                 `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty"`
	DataType             DataType               `protobuf:"varint,5,opt,name=data_type,json=dataType,proto3,enum=milvus.proto.schema.DataType" json:"data_type,omitempty"`
	TypeParams           []*common.KeyValuePair `protobuf:"bytes,6,rep,name=type_params,json=typeParams,proto3" json:"type_params,omitempty"`
	IndexParams          []*common.KeyValuePair `protobuf:"bytes,7,rep,name=index_params,json=indexParams,proto3" json:"index_params,omitempty"`
	AutoID               bool                   `protobuf:"varint,8,opt,name=autoID,proto3" json:"autoID,omitempty"`
	XXX_NoUnkeyedLiteral struct{}               `json:"-"`
	XXX_unrecognized     []byte                 `json:"-"`
	XXX_sizecache        int32                  `json:"-"`
}

* @brief Field schema

func (*FieldSchema) Descriptor

func (*FieldSchema) Descriptor() ([]byte, []int)

func (*FieldSchema) GetAutoID

func (m *FieldSchema) GetAutoID() bool

func (*FieldSchema) GetDataType

func (m *FieldSchema) GetDataType() DataType

func (*FieldSchema) GetDescription

func (m *FieldSchema) GetDescription() string

func (*FieldSchema) GetFieldID

func (m *FieldSchema) GetFieldID() int64

func (*FieldSchema) GetIndexParams

func (m *FieldSchema) GetIndexParams() []*common.KeyValuePair

func (*FieldSchema) GetIsPrimaryKey

func (m *FieldSchema) GetIsPrimaryKey() bool

func (*FieldSchema) GetName

func (m *FieldSchema) GetName() string

func (*FieldSchema) GetTypeParams

func (m *FieldSchema) GetTypeParams() []*common.KeyValuePair

func (*FieldSchema) ProtoMessage

func (*FieldSchema) ProtoMessage()

func (*FieldSchema) Reset

func (m *FieldSchema) Reset()

func (*FieldSchema) String

func (m *FieldSchema) String() string

func (*FieldSchema) XXX_DiscardUnknown

func (m *FieldSchema) XXX_DiscardUnknown()

func (*FieldSchema) XXX_Marshal

func (m *FieldSchema) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*FieldSchema) XXX_Merge

func (m *FieldSchema) XXX_Merge(src proto.Message)

func (*FieldSchema) XXX_Size

func (m *FieldSchema) XXX_Size() int

func (*FieldSchema) XXX_Unmarshal

func (m *FieldSchema) XXX_Unmarshal(b []byte) error

type FloatArray

type FloatArray struct {
	Data                 []float32 `protobuf:"fixed32,1,rep,packed,name=data,proto3" json:"data,omitempty"`
	XXX_NoUnkeyedLiteral struct{}  `json:"-"`
	XXX_unrecognized     []byte    `json:"-"`
	XXX_sizecache        int32     `json:"-"`
}

func (*FloatArray) Descriptor

func (*FloatArray) Descriptor() ([]byte, []int)

func (*FloatArray) GetData

func (m *FloatArray) GetData() []float32

func (*FloatArray) ProtoMessage

func (*FloatArray) ProtoMessage()

func (*FloatArray) Reset

func (m *FloatArray) Reset()

func (*FloatArray) String

func (m *FloatArray) String() string

func (*FloatArray) XXX_DiscardUnknown

func (m *FloatArray) XXX_DiscardUnknown()

func (*FloatArray) XXX_Marshal

func (m *FloatArray) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*FloatArray) XXX_Merge

func (m *FloatArray) XXX_Merge(src proto.Message)

func (*FloatArray) XXX_Size

func (m *FloatArray) XXX_Size() int

func (*FloatArray) XXX_Unmarshal

func (m *FloatArray) XXX_Unmarshal(b []byte) error

type IDs

type IDs struct {
	// Types that are valid to be assigned to IdField:
	//	*IDs_IntId
	//	*IDs_StrId
	IdField              isIDs_IdField `protobuf_oneof:"id_field"`
	XXX_NoUnkeyedLiteral struct{}      `json:"-"`
	XXX_unrecognized     []byte        `json:"-"`
	XXX_sizecache        int32         `json:"-"`
}

func (*IDs) Descriptor

func (*IDs) Descriptor() ([]byte, []int)

func (*IDs) GetIdField

func (m *IDs) GetIdField() isIDs_IdField

func (*IDs) GetIntId

func (m *IDs) GetIntId() *LongArray

func (*IDs) GetStrId

func (m *IDs) GetStrId() *StringArray

func (*IDs) ProtoMessage

func (*IDs) ProtoMessage()

func (*IDs) Reset

func (m *IDs) Reset()

func (*IDs) String

func (m *IDs) String() string

func (*IDs) XXX_DiscardUnknown

func (m *IDs) XXX_DiscardUnknown()

func (*IDs) XXX_Marshal

func (m *IDs) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*IDs) XXX_Merge

func (m *IDs) XXX_Merge(src proto.Message)

func (*IDs) XXX_OneofWrappers

func (*IDs) XXX_OneofWrappers() []interface{}

XXX_OneofWrappers is for the internal use of the proto package.

func (*IDs) XXX_Size

func (m *IDs) XXX_Size() int

func (*IDs) XXX_Unmarshal

func (m *IDs) XXX_Unmarshal(b []byte) error

type IDs_IntId

type IDs_IntId struct {
	IntId *LongArray `protobuf:"bytes,1,opt,name=int_id,json=intId,proto3,oneof"`
}

type IDs_StrId

type IDs_StrId struct {
	StrId *StringArray `protobuf:"bytes,2,opt,name=str_id,json=strId,proto3,oneof"`
}

type IntArray

type IntArray struct {
	Data                 []int32  `protobuf:"varint,1,rep,packed,name=data,proto3" json:"data,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*IntArray) Descriptor

func (*IntArray) Descriptor() ([]byte, []int)

func (*IntArray) GetData

func (m *IntArray) GetData() []int32

func (*IntArray) ProtoMessage

func (*IntArray) ProtoMessage()

func (*IntArray) Reset

func (m *IntArray) Reset()

func (*IntArray) String

func (m *IntArray) String() string

func (*IntArray) XXX_DiscardUnknown

func (m *IntArray) XXX_DiscardUnknown()

func (*IntArray) XXX_Marshal

func (m *IntArray) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*IntArray) XXX_Merge

func (m *IntArray) XXX_Merge(src proto.Message)

func (*IntArray) XXX_Size

func (m *IntArray) XXX_Size() int

func (*IntArray) XXX_Unmarshal

func (m *IntArray) XXX_Unmarshal(b []byte) error

type LongArray

type LongArray struct {
	Data                 []int64  `protobuf:"varint,1,rep,packed,name=data,proto3" json:"data,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*LongArray) Descriptor

func (*LongArray) Descriptor() ([]byte, []int)

func (*LongArray) GetData

func (m *LongArray) GetData() []int64

func (*LongArray) ProtoMessage

func (*LongArray) ProtoMessage()

func (*LongArray) Reset

func (m *LongArray) Reset()

func (*LongArray) String

func (m *LongArray) String() string

func (*LongArray) XXX_DiscardUnknown

func (m *LongArray) XXX_DiscardUnknown()

func (*LongArray) XXX_Marshal

func (m *LongArray) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*LongArray) XXX_Merge

func (m *LongArray) XXX_Merge(src proto.Message)

func (*LongArray) XXX_Size

func (m *LongArray) XXX_Size() int

func (*LongArray) XXX_Unmarshal

func (m *LongArray) XXX_Unmarshal(b []byte) error

type ScalarField

type ScalarField struct {
	// Types that are valid to be assigned to Data:
	//	*ScalarField_BoolData
	//	*ScalarField_IntData
	//	*ScalarField_LongData
	//	*ScalarField_FloatData
	//	*ScalarField_DoubleData
	//	*ScalarField_StringData
	//	*ScalarField_BytesData
	Data                 isScalarField_Data `protobuf_oneof:"data"`
	XXX_NoUnkeyedLiteral struct{}           `json:"-"`
	XXX_unrecognized     []byte             `json:"-"`
	XXX_sizecache        int32              `json:"-"`
}

func (*ScalarField) Descriptor

func (*ScalarField) Descriptor() ([]byte, []int)

func (*ScalarField) GetBoolData

func (m *ScalarField) GetBoolData() *BoolArray

func (*ScalarField) GetBytesData

func (m *ScalarField) GetBytesData() *BytesArray

func (*ScalarField) GetData

func (m *ScalarField) GetData() isScalarField_Data

func (*ScalarField) GetDoubleData

func (m *ScalarField) GetDoubleData() *DoubleArray

func (*ScalarField) GetFloatData

func (m *ScalarField) GetFloatData() *FloatArray

func (*ScalarField) GetIntData

func (m *ScalarField) GetIntData() *IntArray

func (*ScalarField) GetLongData

func (m *ScalarField) GetLongData() *LongArray

func (*ScalarField) GetStringData

func (m *ScalarField) GetStringData() *StringArray

func (*ScalarField) ProtoMessage

func (*ScalarField) ProtoMessage()

func (*ScalarField) Reset

func (m *ScalarField) Reset()

func (*ScalarField) String

func (m *ScalarField) String() string

func (*ScalarField) XXX_DiscardUnknown

func (m *ScalarField) XXX_DiscardUnknown()

func (*ScalarField) XXX_Marshal

func (m *ScalarField) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ScalarField) XXX_Merge

func (m *ScalarField) XXX_Merge(src proto.Message)

func (*ScalarField) XXX_OneofWrappers

func (*ScalarField) XXX_OneofWrappers() []interface{}

XXX_OneofWrappers is for the internal use of the proto package.

func (*ScalarField) XXX_Size

func (m *ScalarField) XXX_Size() int

func (*ScalarField) XXX_Unmarshal

func (m *ScalarField) XXX_Unmarshal(b []byte) error

type ScalarField_BoolData

type ScalarField_BoolData struct {
	BoolData *BoolArray `protobuf:"bytes,1,opt,name=bool_data,json=boolData,proto3,oneof"`
}

type ScalarField_BytesData

type ScalarField_BytesData struct {
	BytesData *BytesArray `protobuf:"bytes,7,opt,name=bytes_data,json=bytesData,proto3,oneof"`
}

type ScalarField_DoubleData

type ScalarField_DoubleData struct {
	DoubleData *DoubleArray `protobuf:"bytes,5,opt,name=double_data,json=doubleData,proto3,oneof"`
}

type ScalarField_FloatData

type ScalarField_FloatData struct {
	FloatData *FloatArray `protobuf:"bytes,4,opt,name=float_data,json=floatData,proto3,oneof"`
}

type ScalarField_IntData

type ScalarField_IntData struct {
	IntData *IntArray `protobuf:"bytes,2,opt,name=int_data,json=intData,proto3,oneof"`
}

type ScalarField_LongData

type ScalarField_LongData struct {
	LongData *LongArray `protobuf:"bytes,3,opt,name=long_data,json=longData,proto3,oneof"`
}

type ScalarField_StringData

type ScalarField_StringData struct {
	StringData *StringArray `protobuf:"bytes,6,opt,name=string_data,json=stringData,proto3,oneof"`
}

type SearchResultData

type SearchResultData struct {
	NumQueries           int64        `protobuf:"varint,1,opt,name=num_queries,json=numQueries,proto3" json:"num_queries,omitempty"`
	TopK                 int64        `protobuf:"varint,2,opt,name=top_k,json=topK,proto3" json:"top_k,omitempty"`
	FieldsData           []*FieldData `protobuf:"bytes,3,rep,name=fields_data,json=fieldsData,proto3" json:"fields_data,omitempty"`
	Scores               []float32    `protobuf:"fixed32,4,rep,packed,name=scores,proto3" json:"scores,omitempty"`
	Ids                  *IDs         `protobuf:"bytes,5,opt,name=ids,proto3" json:"ids,omitempty"`
	Topks                []int64      `protobuf:"varint,6,rep,packed,name=topks,proto3" json:"topks,omitempty"`
	XXX_NoUnkeyedLiteral struct{}     `json:"-"`
	XXX_unrecognized     []byte       `json:"-"`
	XXX_sizecache        int32        `json:"-"`
}

func (*SearchResultData) Descriptor

func (*SearchResultData) Descriptor() ([]byte, []int)

func (*SearchResultData) GetFieldsData

func (m *SearchResultData) GetFieldsData() []*FieldData

func (*SearchResultData) GetIds

func (m *SearchResultData) GetIds() *IDs

func (*SearchResultData) GetNumQueries

func (m *SearchResultData) GetNumQueries() int64

func (*SearchResultData) GetScores

func (m *SearchResultData) GetScores() []float32

func (*SearchResultData) GetTopK

func (m *SearchResultData) GetTopK() int64

func (*SearchResultData) GetTopks

func (m *SearchResultData) GetTopks() []int64

func (*SearchResultData) ProtoMessage

func (*SearchResultData) ProtoMessage()

func (*SearchResultData) Reset

func (m *SearchResultData) Reset()

func (*SearchResultData) String

func (m *SearchResultData) String() string

func (*SearchResultData) XXX_DiscardUnknown

func (m *SearchResultData) XXX_DiscardUnknown()

func (*SearchResultData) XXX_Marshal

func (m *SearchResultData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*SearchResultData) XXX_Merge

func (m *SearchResultData) XXX_Merge(src proto.Message)

func (*SearchResultData) XXX_Size

func (m *SearchResultData) XXX_Size() int

func (*SearchResultData) XXX_Unmarshal

func (m *SearchResultData) XXX_Unmarshal(b []byte) error

type StringArray

type StringArray struct {
	Data                 []string `protobuf:"bytes,1,rep,name=data,proto3" json:"data,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*StringArray) Descriptor

func (*StringArray) Descriptor() ([]byte, []int)

func (*StringArray) GetData

func (m *StringArray) GetData() []string

func (*StringArray) ProtoMessage

func (*StringArray) ProtoMessage()

func (*StringArray) Reset

func (m *StringArray) Reset()

func (*StringArray) String

func (m *StringArray) String() string

func (*StringArray) XXX_DiscardUnknown

func (m *StringArray) XXX_DiscardUnknown()

func (*StringArray) XXX_Marshal

func (m *StringArray) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*StringArray) XXX_Merge

func (m *StringArray) XXX_Merge(src proto.Message)

func (*StringArray) XXX_Size

func (m *StringArray) XXX_Size() int

func (*StringArray) XXX_Unmarshal

func (m *StringArray) XXX_Unmarshal(b []byte) error

type VectorField

type VectorField struct {
	Dim int64 `protobuf:"varint,1,opt,name=dim,proto3" json:"dim,omitempty"`
	// Types that are valid to be assigned to Data:
	//	*VectorField_FloatVector
	//	*VectorField_BinaryVector
	Data                 isVectorField_Data `protobuf_oneof:"data"`
	XXX_NoUnkeyedLiteral struct{}           `json:"-"`
	XXX_unrecognized     []byte             `json:"-"`
	XXX_sizecache        int32              `json:"-"`
}

func (*VectorField) Descriptor

func (*VectorField) Descriptor() ([]byte, []int)

func (*VectorField) GetBinaryVector

func (m *VectorField) GetBinaryVector() []byte

func (*VectorField) GetData

func (m *VectorField) GetData() isVectorField_Data

func (*VectorField) GetDim

func (m *VectorField) GetDim() int64

func (*VectorField) GetFloatVector

func (m *VectorField) GetFloatVector() *FloatArray

func (*VectorField) ProtoMessage

func (*VectorField) ProtoMessage()

func (*VectorField) Reset

func (m *VectorField) Reset()

func (*VectorField) String

func (m *VectorField) String() string

func (*VectorField) XXX_DiscardUnknown

func (m *VectorField) XXX_DiscardUnknown()

func (*VectorField) XXX_Marshal

func (m *VectorField) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*VectorField) XXX_Merge

func (m *VectorField) XXX_Merge(src proto.Message)

func (*VectorField) XXX_OneofWrappers

func (*VectorField) XXX_OneofWrappers() []interface{}

XXX_OneofWrappers is for the internal use of the proto package.

func (*VectorField) XXX_Size

func (m *VectorField) XXX_Size() int

func (*VectorField) XXX_Unmarshal

func (m *VectorField) XXX_Unmarshal(b []byte) error

type VectorField_BinaryVector

type VectorField_BinaryVector struct {
	BinaryVector []byte `protobuf:"bytes,3,opt,name=binary_vector,json=binaryVector,proto3,oneof"`
}

type VectorField_FloatVector

type VectorField_FloatVector struct {
	FloatVector *FloatArray `protobuf:"bytes,2,opt,name=float_vector,json=floatVector,proto3,oneof"`
}

Source Files

Jump to

Keyboard shortcuts

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