Documentation ¶
Index ¶
- func GenerateArrayOfBoolArray(numRows int) []*schemapb.ScalarField
- func GenerateArrayOfDoubleArray(numRows int) []*schemapb.ScalarField
- func GenerateArrayOfFloatArray(numRows int) []*schemapb.ScalarField
- func GenerateArrayOfIntArray(numRows int) []*schemapb.ScalarField
- func GenerateArrayOfLongArray(numRows int) []*schemapb.ScalarField
- func GenerateArrayOfStringArray(numRows int) []*schemapb.ScalarField
- func GenerateBFloat16Vectors(numRows, dim int) []byte
- func GenerateBFloat16VectorsWithInvalidData(numRows, dim int) []byte
- func GenerateBinaryVectors(numRows, dim int) []byte
- func GenerateBoolArray(numRows int) []bool
- func GenerateBytesArray(numRows int) [][]byte
- func GenerateFloat16Vectors(numRows, dim int) []byte
- func GenerateFloat16VectorsWithInvalidData(numRows, dim int) []byte
- func GenerateFloat32Array(numRows int) []float32
- func GenerateFloat64Array(numRows int) []float64
- func GenerateFloatVectors(numRows, dim int) []float32
- func GenerateHashKeys(numRows int) []uint32
- func GenerateInt16Array(numRows int) []int16
- func GenerateInt32Array(numRows int) []int32
- func GenerateInt64Array(numRows int) []int64
- func GenerateInt8Array(numRows int) []int8
- func GenerateJSONArray(numRows int) [][]byte
- func GenerateScalarFieldData(dType schemapb.DataType, fieldName string, numRows int) *schemapb.FieldData
- func GenerateScalarFieldDataWithID(dType schemapb.DataType, fieldName string, fieldID int64, numRows int) *schemapb.FieldData
- func GenerateScalarFieldDataWithValue(dType schemapb.DataType, fieldName string, fieldID int64, ...) *schemapb.FieldData
- func GenerateSparseFloatVectors(numRows int) *schemapb.SparseFloatArray
- func GenerateSparseFloatVectorsData(numRows int) ([][]byte, int64)
- func GenerateStringArray(numRows int) []string
- func GenerateUint64Array(numRows int) []uint64
- func GenerateVarCharArray(numRows int, maxLen int) []string
- func GenerateVectorFieldData(dType schemapb.DataType, fieldName string, numRows int, dim int) *schemapb.FieldData
- func GenerateVectorFieldDataWithID(dType schemapb.DataType, fieldName string, fieldID int64, numRows int, dim int) *schemapb.FieldData
- func GenerateVectorFieldDataWithValue(dType schemapb.DataType, fieldName string, fieldID int64, ...) *schemapb.FieldData
- func NewArrayFieldData(fieldName string, numRows int) *schemapb.FieldData
- func NewArrayFieldDataWithValue(fieldName string, fieldValue interface{}) *schemapb.FieldData
- func NewBFloat16VectorFieldData(fieldName string, numRows, dim int) *schemapb.FieldData
- func NewBFloat16VectorFieldDataWithValue(fieldName string, fieldValue interface{}, dim int) *schemapb.FieldData
- func NewBinaryVectorFieldData(fieldName string, numRows, dim int) *schemapb.FieldData
- func NewBinaryVectorFieldDataWithValue(fieldName string, fieldValue interface{}, dim int) *schemapb.FieldData
- func NewBoolFieldData(fieldName string, numRows int) *schemapb.FieldData
- func NewBoolFieldDataWithValue(fieldName string, fieldValue interface{}) *schemapb.FieldData
- func NewDoubleFieldData(fieldName string, numRows int) *schemapb.FieldData
- func NewDoubleFieldDataWithValue(fieldName string, fieldValue interface{}) *schemapb.FieldData
- func NewFloat16VectorFieldData(fieldName string, numRows, dim int) *schemapb.FieldData
- func NewFloat16VectorFieldDataWithValue(fieldName string, fieldValue interface{}, dim int) *schemapb.FieldData
- func NewFloatFieldData(fieldName string, numRows int) *schemapb.FieldData
- func NewFloatFieldDataWithValue(fieldName string, fieldValue interface{}) *schemapb.FieldData
- func NewFloatVectorFieldData(fieldName string, numRows, dim int) *schemapb.FieldData
- func NewFloatVectorFieldDataWithValue(fieldName string, fieldValue interface{}, dim int) *schemapb.FieldData
- func NewInt16FieldData(fieldName string, numRows int) *schemapb.FieldData
- func NewInt32FieldData(fieldName string, numRows int) *schemapb.FieldData
- func NewInt32FieldDataWithValue(fieldName string, fieldValue interface{}) *schemapb.FieldData
- func NewInt64FieldData(fieldName string, numRows int) *schemapb.FieldData
- func NewInt64FieldDataWithValue(fieldName string, fieldValue interface{}) *schemapb.FieldData
- func NewInt8FieldData(fieldName string, numRows int) *schemapb.FieldData
- func NewJSONFieldData(fieldName string, numRows int) *schemapb.FieldData
- func NewJSONFieldDataWithValue(fieldName string, fieldValue interface{}) *schemapb.FieldData
- func NewSparseFloatVectorFieldData(fieldName string, numRows int) *schemapb.FieldData
- func NewStringFieldData(fieldName string, numRows int) *schemapb.FieldData
- func NewVarCharFieldData(fieldName string, numRows int) *schemapb.FieldData
- func NewVarCharFieldDataWithValue(fieldName string, fieldValue interface{}) *schemapb.FieldData
- type EmbedEtcdUtil
- type PromMetricsSuite
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateArrayOfBoolArray ¶
func GenerateArrayOfBoolArray(numRows int) []*schemapb.ScalarField
func GenerateArrayOfDoubleArray ¶
func GenerateArrayOfDoubleArray(numRows int) []*schemapb.ScalarField
func GenerateArrayOfFloatArray ¶
func GenerateArrayOfFloatArray(numRows int) []*schemapb.ScalarField
func GenerateArrayOfIntArray ¶
func GenerateArrayOfIntArray(numRows int) []*schemapb.ScalarField
func GenerateArrayOfLongArray ¶
func GenerateArrayOfLongArray(numRows int) []*schemapb.ScalarField
func GenerateArrayOfStringArray ¶
func GenerateArrayOfStringArray(numRows int) []*schemapb.ScalarField
func GenerateBFloat16Vectors ¶
func GenerateBinaryVectors ¶
func GenerateBytesArray ¶
func GenerateFloat16Vectors ¶
func GenerateFloat32Array ¶
func GenerateFloat64Array ¶
func GenerateFloatVectors ¶
func GenerateHashKeys ¶
func GenerateInt16Array ¶
func GenerateInt32Array ¶
func GenerateInt64Array ¶
func GenerateInt8Array ¶
func GenerateJSONArray ¶
func GenerateScalarFieldData ¶
func GenerateSparseFloatVectors ¶
func GenerateSparseFloatVectors(numRows int) *schemapb.SparseFloatArray
func GenerateStringArray ¶
func GenerateUint64Array ¶
func GenerateVarCharArray ¶
func GenerateVectorFieldData ¶
func NewBoolFieldData ¶
generate FieldData
func NewDoubleFieldData ¶
func NewFloatVectorFieldData ¶
func NewStringFieldData ¶
func NewVarCharFieldData ¶
Types ¶
type EmbedEtcdUtil ¶
type EmbedEtcdUtil struct {
// contains filtered or unexported fields
}
func (*EmbedEtcdUtil) SetupEtcd ¶
func (util *EmbedEtcdUtil) SetupEtcd() ([]string, error)
func (*EmbedEtcdUtil) TearDownEmbedEtcd ¶
func (util *EmbedEtcdUtil) TearDownEmbedEtcd()
type PromMetricsSuite ¶
PromMetricsSuite is a util suite wrapper providing prometheus metrics assertion functions.
func (*PromMetricsSuite) CollectCntEqual ¶
func (suite *PromMetricsSuite) CollectCntEqual(c prometheus.Collector, expect int, msgAndArgs ...any) bool
func (*PromMetricsSuite) MetricsEqual ¶
func (suite *PromMetricsSuite) MetricsEqual(c prometheus.Collector, expect float64, msgAndArgs ...any) bool
Click to show internal directories.
Click to hide internal directories.