milvus/core/include/segment_c.h
bigsheeper 7d8ddf05a9 Add cgo building script and init ago insertion interface
Signed-off-by: bigsheeper <yihao.dai@zilliz.com>
2020-08-29 17:37:53 +08:00

27 lines
733 B
C

#ifdef __cplusplus
extern "C" {
#endif
//struct DogDataChunk {
// void* raw_data; // schema
// int sizeof_per_row; // alignment
// signed long int count;
//};
typedef void* CSegmentBase;
CSegmentBase SegmentBaseInit(unsigned long segment_id);
//int32_t Insert(CSegmentBase c_segment, signed long int size, const unsigned long* primary_keys, const unsigned long int* timestamps, DogDataChunk values);
int Insert(CSegmentBase c_segment,
signed long int size,
const unsigned long* primary_keys,
const unsigned long int* timestamps,
void* raw_data,
int sizeof_per_row,
signed long int count);
#ifdef __cplusplus
}
#endif