Patent ID: 11934422
Assignee: HUAWEI TECHNOLOGIES CO., LTD.
Field: Computer technology (Electrical engineering)
Classification: CPC G | IPC G

Claim 12:
13. A method for writing data to a database, wherein the method is applied to an apparatus for writing the data to the database, and the method comprises:
generating an object processing kernel on a virtual machine (VM)-side, and a data writing kernel on a native side;
the object processing kernel comprising a VM-side buffer application programming interface (API), and being configured to write object data from a plurality of objects to the buffer using the VM-side buffer API,
the data writing kernel comprising a native-side buffer API, and being configured to read the object data from the buffer using the native-side buffer API and write the object data to a plurality of locations in the database using the database interface;

writing the object data from a plurality of objects to the buffer using the VM-side buffer API,
reading the object data from the buffer using a native-side buffer API, and
writing the object data to a plurality of locations in the database using the database interface,
wherein information indicating one of the plural memory regions in the buffer where the object data is written is known to the native-side buffer API and to the VM-side buffer API;
wherein generation of the object processing kernel is based on a first isomorphism between respective object types of the plurality of objects and a data format of the region layout in the buffer, and
generation of the data writing kernel is based on a second isomorphism between a data format of the database data in the database interface and the data format of the region layout in the buffer;
wherein the first isomorphism and the second isomorphism are input to the kernel generator, the isomorphisms are data structures representing program code.