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

Claim 11:
12. A method for extracting data from a database, wherein the method is applied to an apparatus for extracting the data from the database, and the method comprises:
generating a data extraction kernel on a native side, and generating an object initialization kernel on a virtual machine (VM)-side,
the data extraction kernel comprising a native-side buffer application programming interface (API), and being configured to read database data from a plurality of locations in the database using the database interface and write the database data to the buffer using the native-side buffer API, the database data corresponding to a query result,
the object initialization kernel comprising a VM-side buffer API and being configured to read the database data from the buffer using the VM-side buffer API and to initialize a plurality of objects with the database data read from the buffer,

reading the database data from a plurality of locations in the database using a database interface, the database data corresponding to a query result,
writing the database data to a buffer comprising a plurality of memory regions using the native-side buffer API,
reading database data from the buffer using a virtual machine (VM-side buffer API, and
initializing a plurality of objects with the database data read from the buffer,
wherein information indicating one of the plural memory regions in the buffer where database data is written known to the native-side buffer API and to the VM-side buffer API;
wherein generation of the object initialization 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 extraction 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.