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

Claim 10:
11. An apparatus for writing data to a database, the apparatus comprising:
a database interface configured to enable communication between the apparatus and the database;
a virtual machine (VM);
a buffer comprising a plurality of memory regions;
a kernel generator configured to generate an object processing kernel on a 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,

wherein information indicating one of the plural memory regions in the buffer where the object processing kernel writes the object data is known to the native-side buffer API and to the VM-side buffer API;
wherein in generating the object processing kernel and the data writing kernel, the kernel generator is further configured to generate:
the object processing kernel 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
the data writing kernel 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.