typeutil

package
v0.10.3-0...-7418609 Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2024 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildRecord

func BuildRecord(b *array.RecordBuilder, data *storage.InsertData, fields []*schemapb.FieldSchema) error

func ConvertToArrowSchema

func ConvertToArrowSchema(fields []*schemapb.FieldSchema) (*arrow.Schema, error)

func FillRetrieveResultIfEmpty

func FillRetrieveResultIfEmpty(result RetrieveResults, outputFieldIDs []int64, schema *schemapb.CollectionSchema) error

func GetStorageURI

func GetStorageURI(protocol, pathPrefix string, segmentID int64) (string, error)

func HashKey2Partitions

func HashKey2Partitions(fieldSchema *schemapb.FieldSchema, keys []*planpb.GenericValue, partitionNames []string) ([]string, error)

HashKey2Partitions hash partition keys to partitions

Types

type RetrieveResults

type RetrieveResults interface {
	PreHandle()
	ResultEmpty() bool
	AppendFieldData(fieldData *schemapb.FieldData)
}

func NewInternalResult

func NewInternalResult(result *internalpb.RetrieveResults) RetrieveResults

func NewMilvusResult

func NewMilvusResult(result *milvuspb.QueryResults) RetrieveResults

func NewSegcoreResults

func NewSegcoreResults(result *segcorepb.RetrieveResults) RetrieveResults

Jump to

Keyboard shortcuts

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