Uses of Class
org.zvec.binding.ZvecNative.zvec_doc_t
Packages that use ZvecNative.zvec_doc_t
-
Uses of ZvecNative.zvec_doc_t in org.zvec.binding
Methods in org.zvec.binding that return ZvecNative.zvec_doc_tModifier and TypeMethodDescriptionstatic ZvecNative.zvec_doc_tZvecNative.zvec_doc_create()Create a new document objectMethods in org.zvec.binding with parameters of type ZvecNative.zvec_doc_tModifier and TypeMethodDescriptionstatic intZvecNative.zvec_collection_insert(ZvecNative.zvec_collection_t collection, ZvecNative.zvec_doc_t docs, long doc_count, org.bytedeco.javacpp.SizeTPointer success_count, org.bytedeco.javacpp.SizeTPointer error_count) static intZvecNative.zvec_collection_insert_with_results(ZvecNative.zvec_collection_t collection, ZvecNative.zvec_doc_t docs, long doc_count, ZvecNative.zvec_write_result_t results, org.bytedeco.javacpp.SizeTPointer result_count) static intZvecNative.zvec_collection_update(ZvecNative.zvec_collection_t collection, ZvecNative.zvec_doc_t docs, long doc_count, org.bytedeco.javacpp.SizeTPointer success_count, org.bytedeco.javacpp.SizeTPointer error_count) static intZvecNative.zvec_collection_update_with_results(ZvecNative.zvec_collection_t collection, ZvecNative.zvec_doc_t docs, long doc_count, ZvecNative.zvec_write_result_t results, org.bytedeco.javacpp.SizeTPointer result_count) static intZvecNative.zvec_collection_upsert(ZvecNative.zvec_collection_t collection, ZvecNative.zvec_doc_t docs, long doc_count, org.bytedeco.javacpp.SizeTPointer success_count, org.bytedeco.javacpp.SizeTPointer error_count) static intZvecNative.zvec_collection_upsert_with_results(ZvecNative.zvec_collection_t collection, ZvecNative.zvec_doc_t docs, long doc_count, ZvecNative.zvec_write_result_t results, org.bytedeco.javacpp.SizeTPointer result_count) static intZvecNative.zvec_doc_add_field_by_struct(ZvecNative.zvec_doc_t doc, ZvecNative.zvec_doc_field_t field) Add field to document by structurestatic intZvecNative.zvec_doc_add_field_by_value(ZvecNative.zvec_doc_t doc, String field_name, int data_type, org.bytedeco.javacpp.Pointer value, long value_size) static intZvecNative.zvec_doc_add_field_by_value(ZvecNative.zvec_doc_t doc, org.bytedeco.javacpp.BytePointer field_name, int data_type, org.bytedeco.javacpp.Pointer value, long value_size) Add field to document by valuestatic voidZvecNative.zvec_doc_clear(ZvecNative.zvec_doc_t doc) Clear the document objectstatic intZvecNative.zvec_doc_deserialize(byte[] data, long size, ZvecNative.zvec_doc_t doc) static intZvecNative.zvec_doc_deserialize(ByteBuffer data, long size, ZvecNative.zvec_doc_t doc) static intZvecNative.zvec_doc_deserialize(org.bytedeco.javacpp.BytePointer data, long size, ZvecNative.zvec_doc_t doc) static voidZvecNative.zvec_doc_destroy(ZvecNative.zvec_doc_t doc) Destroy the document object and release all resourcesstatic longZvecNative.zvec_doc_get_doc_id(ZvecNative.zvec_doc_t doc) Get document IDstatic longZvecNative.zvec_doc_get_field_count(ZvecNative.zvec_doc_t doc) Get document field countstatic intZvecNative.zvec_doc_get_field_names(ZvecNative.zvec_doc_t doc, org.bytedeco.javacpp.PointerPointer field_names, org.bytedeco.javacpp.SizeTPointer count) Get all field names of documentstatic intZvecNative.zvec_doc_get_field_value_basic(ZvecNative.zvec_doc_t doc, String field_name, int field_type, org.bytedeco.javacpp.Pointer value_buffer, long buffer_size) static intZvecNative.zvec_doc_get_field_value_basic(ZvecNative.zvec_doc_t doc, org.bytedeco.javacpp.BytePointer field_name, int field_type, org.bytedeco.javacpp.Pointer value_buffer, long buffer_size) Get field value (basic type returned directly) Supports basic numeric data types: BOOL, INT32, INT64, UINT32, UINT64, FLOAT, DOUBLE.static intZvecNative.zvec_doc_get_field_value_copy(ZvecNative.zvec_doc_t doc, String field_name, int field_type, org.bytedeco.javacpp.Pointer value, org.bytedeco.javacpp.SizeTPointer value_size) static intZvecNative.zvec_doc_get_field_value_copy(ZvecNative.zvec_doc_t doc, org.bytedeco.javacpp.BytePointer field_name, int field_type, org.bytedeco.javacpp.PointerPointer value, org.bytedeco.javacpp.SizeTPointer value_size) Get field value copy (allocate new memory) Supports all data types including: - Basic types: BOOL, INT32, INT64, UINT32, UINT64, FLOAT, DOUBLE - String types: STRING, BINARY - Vector types: VECTOR_FP32, VECTOR_FP64, VECTOR_FP16, VECTOR_INT4, VECTOR_INT8, VECTOR_INT16, VECTOR_BINARY32, VECTOR_BINARY64 - Sparse vector types: SPARSE_VECTOR_FP32, SPARSE_VECTOR_FP16 - Array types: ARRAY_STRING, ARRAY_BINARY, ARRAY_BOOL, ARRAY_INT32, ARRAY_INT64, ARRAY_UINT32, ARRAY_UINT64, ARRAY_FLOAT, ARRAY_DOUBLE The returned value pointer must be manually freed using appropriate deallocation functions (zvec_free() for basic types and strings, zvec_free_uint8_array() for binary data).static intZvecNative.zvec_doc_get_field_value_copy(ZvecNative.zvec_doc_t doc, org.bytedeco.javacpp.BytePointer field_name, int field_type, org.bytedeco.javacpp.Pointer value, org.bytedeco.javacpp.SizeTPointer value_size) static intZvecNative.zvec_doc_get_field_value_pointer(ZvecNative.zvec_doc_t doc, String field_name, int field_type, org.bytedeco.javacpp.Pointer value, org.bytedeco.javacpp.SizeTPointer value_size) static intZvecNative.zvec_doc_get_field_value_pointer(ZvecNative.zvec_doc_t doc, org.bytedeco.javacpp.BytePointer field_name, int field_type, org.bytedeco.javacpp.PointerPointer value, org.bytedeco.javacpp.SizeTPointer value_size) Get field value pointer (data remains in document) Supports data types where direct pointer access is safe: - Basic types: BOOL, INT32, INT64, UINT32, UINT64, FLOAT, DOUBLE - String types: STRING (returns null-terminated C string), BINARY - Vector types: VECTOR_FP32, VECTOR_FP64, VECTOR_FP16, VECTOR_INT4, VECTOR_INT8, VECTOR_INT16, VECTOR_BINARY32, VECTOR_BINARY64 - Array types: ARRAY_INT32, ARRAY_INT64, ARRAY_UINT32, ARRAY_UINT64, ARRAY_FLOAT, ARRAY_DOUBLE The returned pointer points to data within the document object and does not require manual memory management.static intZvecNative.zvec_doc_get_field_value_pointer(ZvecNative.zvec_doc_t doc, org.bytedeco.javacpp.BytePointer field_name, int field_type, org.bytedeco.javacpp.Pointer value, org.bytedeco.javacpp.SizeTPointer value_size) static intZvecNative.zvec_doc_get_operator(ZvecNative.zvec_doc_t doc) Get document operatorstatic org.bytedeco.javacpp.BytePointerZvecNative.zvec_doc_get_pk_copy(ZvecNative.zvec_doc_t doc) Get document primary key copy (needs manual release)static org.bytedeco.javacpp.BytePointerZvecNative.zvec_doc_get_pk_pointer(ZvecNative.zvec_doc_t doc) Get document primary key pointer (no copy)static floatZvecNative.zvec_doc_get_score(ZvecNative.zvec_doc_t doc) Get document scorestatic booleanZvecNative.zvec_doc_has_field(ZvecNative.zvec_doc_t doc, String field_name) static booleanZvecNative.zvec_doc_has_field(ZvecNative.zvec_doc_t doc, org.bytedeco.javacpp.BytePointer field_name) Check if document contains specified fieldstatic booleanZvecNative.zvec_doc_has_field_value(ZvecNative.zvec_doc_t doc, String field_name) static booleanZvecNative.zvec_doc_has_field_value(ZvecNative.zvec_doc_t doc, org.bytedeco.javacpp.BytePointer field_name) Check if document field has valuestatic booleanZvecNative.zvec_doc_is_empty(ZvecNative.zvec_doc_t doc) Check if document is emptystatic booleanZvecNative.zvec_doc_is_field_null(ZvecNative.zvec_doc_t doc, String field_name) static booleanZvecNative.zvec_doc_is_field_null(ZvecNative.zvec_doc_t doc, org.bytedeco.javacpp.BytePointer field_name) Check if document field is nullstatic intZvecNative.zvec_doc_iterator_next(ZvecNative.zvec_doc_iterator_t iter, ZvecNative.zvec_doc_t out_doc) static longZvecNative.zvec_doc_memory_usage(ZvecNative.zvec_doc_t doc) Get document memory usagestatic voidZvecNative.zvec_doc_merge(ZvecNative.zvec_doc_t doc, ZvecNative.zvec_doc_t other) Merge two documentsstatic intZvecNative.zvec_doc_remove_field(ZvecNative.zvec_doc_t doc, String field_name) static intZvecNative.zvec_doc_remove_field(ZvecNative.zvec_doc_t doc, org.bytedeco.javacpp.BytePointer field_name) Remove field from documentstatic intZvecNative.zvec_doc_serialize(ZvecNative.zvec_doc_t doc, byte[] data, org.bytedeco.javacpp.SizeTPointer size) static intZvecNative.zvec_doc_serialize(ZvecNative.zvec_doc_t doc, ByteBuffer data, org.bytedeco.javacpp.SizeTPointer size) static intZvecNative.zvec_doc_serialize(ZvecNative.zvec_doc_t doc, org.bytedeco.javacpp.BytePointer data, org.bytedeco.javacpp.SizeTPointer size) static intZvecNative.zvec_doc_serialize(ZvecNative.zvec_doc_t doc, org.bytedeco.javacpp.PointerPointer data, org.bytedeco.javacpp.SizeTPointer size) Serialize documentstatic voidZvecNative.zvec_doc_set_doc_id(ZvecNative.zvec_doc_t doc, long doc_id) Set document IDstatic intZvecNative.zvec_doc_set_field_null(ZvecNative.zvec_doc_t doc, String field_name) static intZvecNative.zvec_doc_set_field_null(ZvecNative.zvec_doc_t doc, org.bytedeco.javacpp.BytePointer field_name) Explicitly mark a document field as null.static voidZvecNative.zvec_doc_set_operator(ZvecNative.zvec_doc_t doc, int op) Set document operatorstatic voidZvecNative.zvec_doc_set_pk(ZvecNative.zvec_doc_t doc, String pk) static voidZvecNative.zvec_doc_set_pk(ZvecNative.zvec_doc_t doc, org.bytedeco.javacpp.BytePointer pk) Set document primary keystatic voidZvecNative.zvec_doc_set_score(ZvecNative.zvec_doc_t doc, float score) Set document scorestatic intZvecNative.zvec_doc_to_detail_string(ZvecNative.zvec_doc_t doc, byte[] detail_str) static intZvecNative.zvec_doc_to_detail_string(ZvecNative.zvec_doc_t doc, ByteBuffer detail_str) static intZvecNative.zvec_doc_to_detail_string(ZvecNative.zvec_doc_t doc, org.bytedeco.javacpp.BytePointer detail_str) static intZvecNative.zvec_doc_to_detail_string(ZvecNative.zvec_doc_t doc, org.bytedeco.javacpp.PointerPointer detail_str) Get detailed string representation of documentstatic voidZvecNative.zvec_docs_free(ZvecNative.zvec_doc_t documents, long count)