Documentation ¶
Index ¶
- func BuildArrayData(schema *schemapb.CollectionSchema, insertData *storage.InsertData, ...) ([]arrow.Array, error)
- func ConstructCollectionSchemaByDataType(collectionName string, fieldName2DataType map[string]schemapb.DataType, ...) *schemapb.CollectionSchema
- func ConstructCollectionSchemaWithKeys(collectionName string, fieldName2DataType map[string]schemapb.DataType, ...) *schemapb.CollectionSchema
- func CreateFieldWithDefaultValue(dataType schemapb.DataType, id int64, nullable bool) (*schemapb.FieldSchema, error)
- func CreateInsertData(schema *schemapb.CollectionSchema, rows int, nullPercent ...int) (*storage.InsertData, error)
- func CreateInsertDataForCSV(schema *schemapb.CollectionSchema, insertData *storage.InsertData, ...) ([][]string, error)
- func CreateInsertDataRowsForJSON(schema *schemapb.CollectionSchema, insertData *storage.InsertData) ([]map[string]any, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildArrayData ¶
func BuildArrayData(schema *schemapb.CollectionSchema, insertData *storage.InsertData, useNullType bool) ([]arrow.Array, error)
func CreateInsertData ¶
func CreateInsertData(schema *schemapb.CollectionSchema, rows int, nullPercent ...int) (*storage.InsertData, error)
func CreateInsertDataForCSV ¶
func CreateInsertDataForCSV(schema *schemapb.CollectionSchema, insertData *storage.InsertData, nullkey string) ([][]string, error)
func CreateInsertDataRowsForJSON ¶
func CreateInsertDataRowsForJSON(schema *schemapb.CollectionSchema, insertData *storage.InsertData) ([]map[string]any, error)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.